cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

chevydevil
Adept II

clEnqueueCopyBuffer causes driver setback

..when used together with clWaitForEvents or clFinish under catalyst 10.10

Hello. In my code I used clEnqueueCopyBuffer without problems but after installing catalyst 10.10 i got a driver setback.

Here is the code:

 

//The copybuffer call status = clEnqueueCopyBuffer(commandQueue,velocityFieldOld,velocityFieldNew,0,0,sizeof(cl_float) *4*96*96*96,0,NULL,NULL); if(status != CL_SUCCESS) std::cout<<"Error: clEnqueueNDRangeKernel ( jacobi2D_kernel)"<< "("<< status <<")" << std::endl; clFinish(commandQueue); //and the Buffer Objects allocation //CreateBuffer velocityFieldNew velocityFieldNew = clCreateBuffer(context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(cl_float) *4* 96*96*96,&Velocity[0], &status); if(status != CL_SUCCESS) std::cout<<"Error: clCreateBuffer (velocityBuffer)"<< "("<< status <<")" << std::endl; //CreateBuffer velocityFieldOld velocityFieldOld = clCreateBuffer(context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR , sizeof(cl_float) *4* 96*96*96,&Velocity[0] , &status); if(status != CL_SUCCESS) std::cout<<"Error: clCreateBuffer (velocitySourceBuffer)"<< "("<< status <<")" << std::endl;

0 Likes
0 Replies