Skip to content

[SYCL][CUDA] llvm-test-suite : AtomicRef/sub.cpp test fails for DPC++ with new Pass Manager turned on #5716

@mlychkov

Description

@mlychkov

Describe the bug
When DPC++ was tested with new Pass Manager turned on by default AtomicRef/sub.cpp test from llvm-test-suite failed with the following error:

[2022-03-01T16:25:36.560Z] ******************** TEST 'SYCL :: AtomicRef/sub.cpp' FAILED ********************
[2022-03-01T16:25:36.560Z] Script:
[2022-03-01T16:25:36.560Z] --
...
[2022-03-01T16:25:36.562Z] --
[2022-03-01T16:25:36.562Z] Exit Code: -9
[2022-03-01T16:25:36.562Z] Timeout: Reached timeout of 600 seconds
[2022-03-01T16:25:36.562Z] 
[2022-03-01T16:25:36.562Z] Command Output (stdout):
[2022-03-01T16:25:36.562Z] --
...
[2022-03-01T16:25:37.337Z] $ ":" "RUN: at line 147"
[2022-03-01T16:25:37.337Z] note: command had no output on stdout or stderr
[2022-03-01T16:25:37.337Z] $ "/localdisk2/iusers/nstester/Codeplay_jenkins-test2/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm.obj/bin/clang++" "-fsycl" "-fsycl-unnamed-lambda" "-fsycl-targets=nvptx64-nvidia-cuda" "/localdisk2/iusers/nstester/Codeplay_jenkins-test2/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm-test-suite/SYCL/AtomicRef/sub.cpp" "-o" "/localdisk2/iusers/nstester/Codeplay_jenkins-test2/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/AtomicRef/Output/sub.cpp.tmp.out" "-Xsycl-target-backend=nvptx64-nvidia-cuda" "--cuda-gpu-arch=sm_70" "-DACQ_REL" "-DSYSTEM" "-DATOMIC64"
[2022-03-01T16:25:37.337Z] # command stderr:
...
[2022-03-01T16:25:37.349Z]                                      ^
[2022-03-01T16:25:37.349Z] 22 warnings generated.
[2022-03-01T16:25:37.349Z] 
[2022-03-01T16:25:37.349Z] error: command failed with exit status: -9
[2022-03-01T16:25:37.349Z] error: command reached timeout: True

PR with patch to enable new PM: #4860
Link on a failed test log: http://llvm-ci-test2.intel.com:8080/blue/organizations/jenkins/SYCL_CI%2Fintel%2FLin%2FLLVM_Test_Suite_CUDA/detail/LLVM_Test_Suite_CUDA/355/pipeline

To Reproduce
Please describe the steps to reproduce the behavior:

  1. Compile DPC++ compiler with new PM turned on by default (see PR Enable new pass manager back by default #4860).
  2. Execute llvm-test-suite
  3. All tests should pass, but AtomicRef tests may fail

Environment (please complete the following information):

  • OS: Linux
  • Target device and vendor: Nvidia GPU
  • DPC++ version: 273bdcf

Additional context
AtomicRef tests were added with the patch intel/llvm-test-suite#534.
They are huge and it is a known issue that there may be a failure due to test timeout in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcudaCUDA back-endruntimeRuntime library related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions