Skip to content

memadvise.cpp test fails on CUDA BE after #3365 #3553

Closed
@vladimirlaz

Description

@vladimirlaz

Describe the bug
intel/llvm-test-suite/blob/intel/SYCL/USM/memadvise.cpp test start to fail with the following output:

[2021-04-13T23:31:43.662Z] FAIL: SYCL :: USM/memadvise.cpp (481 of 501)

[2021-04-13T23:31:43.662Z] ******************** TEST 'SYCL :: USM/memadvise.cpp' FAILED ********************

[2021-04-13T23:31:43.662Z] Script:

[2021-04-13T23:31:43.662Z] --

[2021-04-13T23:31:43.662Z] : 'RUN: at line 1';    /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm.obj/bin/clang++     -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm-test-suite/SYCL/USM/memadvise.cpp -o /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out

[2021-04-13T23:31:43.662Z] : 'RUN: at line 2';   true /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out

[2021-04-13T23:31:43.662Z] : 'RUN: at line 3';   true /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out

[2021-04-13T23:31:43.662Z] : 'RUN: at line 4';    env SYCL_DEVICE_FILTER=cuda:gpu,host  /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out

[2021-04-13T23:31:43.662Z] --

[2021-04-13T23:31:43.662Z] Exit Code: -6

[2021-04-13T23:31:43.662Z] 

[2021-04-13T23:31:43.662Z] Command Output (stdout):

[2021-04-13T23:31:43.662Z] --

[2021-04-13T23:31:43.662Z] $ ":" "RUN: at line 1"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm.obj/bin/clang++" "-fsycl" "-fsycl-targets=nvptx64-nvidia-cuda-sycldevice" "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm-test-suite/SYCL/USM/memadvise.cpp" "-o" "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ ":" "RUN: at line 2"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ "true" "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ ":" "RUN: at line 3"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ "true" "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ ":" "RUN: at line 4"

[2021-04-13T23:31:43.662Z] note: command had no output on stdout or stderr

[2021-04-13T23:31:43.662Z] $ "env" "SYCL_DEVICE_FILTER=cuda:gpu,host" "/workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/build/SYCL/USM/Output/memadvise.cpp.tmp1.out"

[2021-04-13T23:31:43.662Z] # command stderr:

[2021-04-13T23:31:43.662Z] memadvise.cpp.tmp1.out: /workspace/SYCL_CI/intel/Lin/LLVM_Test_Suite_CUDA/llvm.src/sycl/plugins/cuda/pi_cuda.cpp:329: _pi_event::_pi_event(pi_command_type, pi_context, pi_queue): Assertion `type != PI_COMMAND_TYPE_USER' failed.

[2021-04-13T23:31:43.662Z] 

[2021-04-13T23:31:43.662Z] error: command failed with exit status: -6

[2021-04-13T23:31:43.662Z] 

[2021-04-13T23:31:43.662Z] --

[2021-04-13T23:31:43.662Z] 

To Reproduce
The problem can be reproduced following instructions under https://github.com/intel/llvm-test-suite/blob/intel/SYCL/README.md

git clone https://github.com/intel/llvm-test-suite
cd llvm-test-suite
mkdir build
cd build
cmake -G "Ninja" -DCMAKE_CXX_COMPILER=<path_to_intel_sycl_compiler_with cuda_support>/clang++  -DTEST_SUITE_SUBDIRS=SYCL -DTEST_SUITE_LIT=<path_to_lit_fw>/lit.py -DCHECK_SYCL_ALL="cuda:gpu" -DTEST_SUITE_COLLECT_CODE_SIZE=OFF ..
# Build/run all tests
ninja check-sycl-all
# Run single test
llvm-lit --param target_devices=gpu --param sycl_be=cuda SYCL/USM/memadvise.cpp

Environment (please complete the following information):

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions