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
WorkGroupScratchMemory/copy_dynamic_size.cpp will fail executing on cuda devices when it is built for more than just the nvptx triple. The test passes fine when it is built only for nvptx.
To reproduce
To reproduce first build the test for spir and nvptx:
llvm-lit WorkGroupScratchMemory/copy_dynamic_size.cpp --param test-mode=build-only --param sycl_build_targets="spir;nvidia" -a
Then run for cuda:gpu
llvm-lit WorkGroupScratchMemory/copy_dynamic_size.cpp --param test-mode=run-only --param sycl_devices=cuda:gpu -a
I got the following error:
-- Testing: 1 tests, 1 workers --
FAIL: SYCL :: WorkGroupScratchMemory/copy_dynamic_size.cpp (1 of 1)
******************** TEST 'SYCL :: WorkGroupScratchMemory/copy_dynamic_size.cpp' FAILED ********************
Exit Code: 134
Command Output (stderr):
--
RUN: at line 2: env UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /iusers/dgarciao/llvm/build/tools/sycl/test-e2e/WorkGroupScratchMemory/Output/copy_dynamic_size.cpp.tmp.out
+ env UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /iusers/dgarciao/llvm/build/tools/sycl/test-e2e/WorkGroupScratchMemory/Output/copy_dynamic_size.cpp.tmp.out
<CUDA>[ERROR]:
UR CUDA ERROR:
Value: 700
Name: CUDA_ERROR_ILLEGAL_ADDRESS
Description: an illegal memory access was encountered
Function: wait
Source Location: /iusers/dgarciao/llvm/build/_deps/unified-runtime-src/source/adapters/cuda/event.cpp:134
terminate called after throwing an instance of 'sycl::_V1::exception'
what(): Native API failed. Native API returns: 2147483646 (UR_RESULT_ERROR_UNKNOWN)
/iusers/dgarciao/llvm/build/tools/sycl/test-e2e/WorkGroupScratchMemory/Output/copy_dynamic_size.cpp.script: line 1: 4046523 Aborted (core dumped) env UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /iusers/dgarciao/llvm/build/tools/sycl/test-e2e/WorkGroupScratchMemory/Output/copy_dynamic_size.cpp.tmp.out
--
If instead we only build for nvptx in the first step, the test will pass
Describe the bug
WorkGroupScratchMemory/copy_dynamic_size.cpp
will fail executing on cuda devices when it is built for more than just the nvptx triple. The test passes fine when it is built only for nvptx.To reproduce
To reproduce first build the test for spir and nvptx:
Then run for cuda:gpu
I got the following error:
If instead we only build for nvptx in the first step, the test will pass
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: