/********************************************* UPC-IO Reference Implementation Internal test cases HPCL, The George Wasnington University Author: Yiyi Yao E-mail: yyy@gwu.edu *********************************************/ #include #include #include #include int main() { upc_file_t *fd; struct upc_hint *hints; ssize_t ret; size_t size, nmemb, blocksize; shared [] char *buffer; int i; int flag; void *dummy=0; if(!MYTHREAD) printf("upcio test: test fwrite_shared_ind_async with %d Threads\n", THREADS); hints=(struct upc_hint *)malloc(sizeof(struct upc_hint)); nmemb = 1; blocksize = 0; size = 10*(MYTHREAD+1); #ifdef __UPC_VERSION__ // UPC version 1.1 or higher buffer = (shared [] char *)upc_alloc(sizeof(char)*size*nmemb); #else buffer = (shared [] char *)upc_local_alloc(1,sizeof(char)*size*nmemb); #endif for(i=0; i