|
cuda.cuModuleLoadData( module, new BytePointer(VECTOR_ADD_PTX) ); |
This example (line 52) is confusing because method cuModuleLoadData expects path to the .ptx file, not string with file itself which causes error 301 CUDA_ERROR_FILE_NOT_FOUND.
It took me a while to realize that it was a bug in the example and not in my code
sample-projects/cuda-vector-add-driverapi/src/main/java/VectorAddDrv.java
Line 52 in a9f14f5
This example (line 52) is confusing because method
cuModuleLoadDataexpects path to the .ptx file, not string with file itself which causes error301 CUDA_ERROR_FILE_NOT_FOUND.It took me a while to realize that it was a bug in the example and not in my code