Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][CUDA] Add tests for exceeding maximum number of work groups #952

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

t4c1
Copy link

@t4c1 t4c1 commented Mar 28, 2022

Add tests for checking the error for exceeding maximum number of work groups.

Tests changes in intel/llvm#4563.

alexbatashev
alexbatashev previously approved these changes Mar 28, 2022
alexbatashev
alexbatashev previously approved these changes Mar 28, 2022
Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for adding this! LGTM!

steffenlarsen pushed a commit to intel/llvm that referenced this pull request Apr 8, 2022
)

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
@t4c1
Copy link
Author

t4c1 commented Apr 8, 2022

@steffenlarsen this can now be merged as well.

@steffenlarsen steffenlarsen merged commit b064bc8 into intel:intel Apr 8, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Jun 17, 2022
…ntel#952)

Add tests for checking the error for exceeding maximum number of work groups.

Tests changes in intel/llvm#4563.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Jun 17, 2022
…topic

Fix CMPLRTST-16712: Skip some image LIT tests on PVC because images are not supported by this device.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…ntel/llvm-test-suite#952)

Add tests for checking the error for exceeding maximum number of work groups.

Tests changes in intel#4563.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants