Skip to content

DeviceLib/string_test.cpp failing on CUDA in nightly #20338

@sarnex

Description

@sarnex

Describe the bug

DeviceLib/string_test.cpp is failing in the nightly on CUDA. The env there is different, we use an AWS machine which has a different CUDA version and I think a different GPU, probably that's related to the problem.

  FAIL: SYCL :: DeviceLib/string_test.cpp (1118 of 2487)
  ******************** TEST 'SYCL :: DeviceLib/string_test.cpp' FAILED ********************
  Exit Code: -6
  
  Command Output (stdout):
  --
  # RUN: at line 1
  /__w/llvm/llvm/toolchain/bin//clang++ -Werror  -fsycl -fsycl-targets=nvptx64-nvidia-cuda  /__w/llvm/llvm/llvm/sycl/test-e2e/DeviceLib/string_test.cpp -Wno-error=deprecated-declarations -Wno-error=pointer-to-int-cast -fno-builtin -o /__w/llvm/llvm/build-e2e/DeviceLib/Output/string_test.cpp.tmp1.out
  # executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=nvptx64-nvidia-cuda /__w/llvm/llvm/llvm/sycl/test-e2e/DeviceLib/string_test.cpp -Wno-error=deprecated-declarations -Wno-error=pointer-to-int-cast -fno-builtin -o /__w/llvm/llvm/build-e2e/DeviceLib/Output/string_test.cpp.tmp1.out
  # note: command had no output on stdout or stderr
  # RUN: at line 2
  env SYCL_UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu  /__w/llvm/llvm/build-e2e/DeviceLib/Output/string_test.cpp.tmp1.out
  # executed command: env SYCL_UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /__w/llvm/llvm/build-e2e/DeviceLib/Output/string_test.cpp.tmp1.out
  # .---command stderr------------
  # | string_test.cpp.tmp1.out: /__w/llvm/llvm/llvm/sycl/test-e2e/DeviceLib/string_test.cpp:694: int main(): Assertion `((void)"strncpy test failed!", success)' failed.
  # `-----------------------------
  # error: command failed with exit status: -6
  

https://github.com/intel/llvm/actions/runs/18364408875/job/52366031710

https://github.com/intel/llvm/actions/runs/18395384353/job/52414483340

To reproduce

No response

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedcudaCUDA back-end

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions