Hi, I am working on Tesla C2050 on redhat linux system. I allocate two cudaArray on devices as below
cudaChannelFormatDesc channelD=cudaCreateChannelDesc(32, 0, 0, 0,
cudaChannelFormatKindFloat);
cudaArray *ap_cuArray, *fd_cuArray;
err=cudaMallocArray(&fd_cuArray, &channelD, 64);
printf(“%s ! ine: %d \n”, cudaGetErrorString(err), LINE);
err=cudaMallocArray(&ap_cuArray, &channelD, 16);
printf(“%s ! line: %d \n”, cudaGetErrorString(err), LINE);
very simple code. first malloc is successful, but the second malloc gets “invalid argument” error.
i try different number of bytes, all happen with the same problems. This makes me can not have
several textures. a few days ago, the codes work fine. i do not know what i have did, these codes
can not work now. my provious code
cudaEvent_t start, stop; err=cudaEventCreate(&start); err=cudaEventCreate(&stop); cudaEventRecord(start,0);
also get error “invalid configuration argument” now.
Is there something happened with my CUDA environment? The machine is a server, it is difficult for me to reinstall everything.
Thank you very much if you have any suggestions.