dcompute icon indicating copy to clipboard operation
dcompute copied to clipboard

Cuda error codes can be incorrect or missing

Open andrewbenton opened this issue 7 years ago • 1 comments

When loading a kernel using Program.fromFile(...), error codes can also be produced that are in the enum cudaError_enum that is present in cuda.h, not only from cudaError in driver_types.h. This includes error codes for CUDA_ERROR_FILE_NOT_FOUND and CUDA_ERROR_INVALId_HANDLE. Given that these error ranges overlap, at least in the low numbers, e.g. 0-8, I'm not sure how this can be nicely handled.

andrewbenton avatar Sep 12 '17 08:09 andrewbenton

On further inspection, it seems that only codes 1, 4, 5, 6, 7, and 8 collide and disagree.

andrewbenton avatar Sep 12 '17 08:09 andrewbenton