0 Replies Latest reply on Oct 31, 2011 4:11 PM by chevydevil

    clEnqueueCopyBuffer causes driver setback

    chevydevil
      ..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;