I downloaded the “OpenCL Marching Cubes Isosurfaces” example from “Open Computing Language OpenCL | NVIDIA Developer” and managed to compile it. However, it executes with the following error:
!!! Error # -59 (CL_INVALID_OPERATION) at line 863 , in file oclMarchingCubes.cpp !!!
I speculate that it is opencl failed to acquire PBO for writing
ciErrNum = clEnqueueAcquireGLObjects(cqCommandQueue, 2, interopBuffers, 0, 0, 0);
However, how to fix it?
Below is thhe screen output:
...loading Scan.cl
...creating scan program
...building scan program
...creating scan kernels
...checking minimum supported workgroup size
...allocating internal buffers
grid: 32 x 32 x 32 = 32768 voxels
max verts = 102400
Read './src/oclMarchingCubes/data/Bucky.raw', 32768 bytes
!!! Error # -59 (CL_INVALID_OPERATION) at line 863 , in file oclMarchingCubes.cpp !!!
[oclMarchingCubes] test results...
FAILED
> exiting in 3 seconds: 3...2...1...done!
bin/linux/release/oclMarchingCubes Exiting...
Press <Enter> to Quit
----------------------