You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][CUDA] Improve error message for exceeding CUDA grid limits (#4563)
Improves the error message when the user specifies a number of work groups in certain dimension, which exceeds CUDA's max grid dimension limits.
Before this PR the error message is not very informative:
```
PI CUDA ERROR:
Value: 1
Name: CUDA_ERROR_INVALID_VALUE
Description: invalid argument
Function: cuda_piEnqueueKernelLaunch
Source Location: /home/tadej/llvm/sycl/plugins/cuda/pi_cuda.cpp:2662
terminate called after throwing an instance of 'cl::sycl::runtime_error'
what(): Native API failed. Native API returns: -30 (CL_INVALID_VALUE) -30 (CL_INVALID_VALUE)
This is especially confusing when porting code from CUDA, due to the fact that dimensions in SYCL are flipped compared to CUDA and CUDA has different limits for different dimensions.
```
Tested by: intel/llvm-test-suite#952
0 commit comments