Skip to content

AmdNvidiaJIT/kernel_and_bundle.cpp failing on HIP AMD #14989

@sarnex

Description

@sarnex

Describe the bug

FAIL: SYCL :: AmdNvidiaJIT/kernel_and_bundle.cpp (75 of 2129)
******************** TEST 'SYCL :: AmdNvidiaJIT/kernel_and_bundle.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/__w/llvm/llvm/toolchain/bin//clang++  -Werror -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl -fsycl-targets=amdgcn-amd-amdhsa  /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp -fsycl-embed-ir -o /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl -fsycl-targets=amdgcn-amd-amdhsa /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp -fsycl-embed-ir -o /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.out
# note: command had no output on stdout or stderr
# RUN: at line 4
env SYCL_JIT_AMDGCN_PTX_KERNELS=1 env SYCL_JIT_COMPILER_DEBUG="sycl-spec-const-materializer" env ONEAPI_DEVICE_SELECTOR=hip:gpu  /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.out &> /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt ; /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp --input-file /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt
# executed command: env SYCL_JIT_AMDGCN_PTX_KERNELS=1 env SYCL_JIT_COMPILER_DEBUG=sycl-spec-const-materializer env ONEAPI_DEVICE_SELECTOR=hip:gpu /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.out
# .---redirected output from '/__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt'
# | <HIP>[ERROR]: 
# | UR HIP ERROR:
# | 	Value:           209
# | 	Name:            hipErrorNoBinaryForGpu
# | 	Description:     no kernel image is available for execution on the device
# | 	Function:        buildProgram
# | 	Source Location: /__w/llvm/llvm/build/_deps/unified-runtime-src/source/adapters/hip/program.cpp:235
# | 
# | terminate called after throwing an instance of 'sycl::_V1::exception'
# |   what():  The program was built for 1 devices
# | Build program log for 'AMD Radeon RX 6700 XT':
# | ��v�
# `-----------------------------
# note: command had no output on stdout or stderr
# error: command failed with exit status: -6
# executed command: /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp --input-file /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt
# .---command stderr------------
# | /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp:28:11: error: CHECK: expected string not found in input
# | // CHECK: Working on function:
# |           ^
# | /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt:1:1: note: scanning from here
# | <HIP>[ERROR]: 
# | ^
# | /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt:9:24: note: possible intended match here
# | terminate called after throwing an instance of 'sycl::_V1::exception'
# |                        ^
# | 
# | Input file: /__w/llvm/llvm/build-e2e/AmdNvidiaJIT/Output/kernel_and_bundle.cpp.tmp.txt
# | Check file: /__w/llvm/llvm/llvm/sycl/test-e2e/AmdNvidiaJIT/kernel_and_bundle.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: <HIP>[ERROR]:  
# | check:28'0     X~~~~~~~~~~~~~~ error: no match found
# |             2: UR HIP ERROR: 
# | check:28'0     ~~~~~~~~~~~~~~
# |             3:  Value: 209 
# | check:28'0     ~~~~~~~~~~~~
# |             4:  Name: hipErrorNoBinaryForGpu 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  Description: no kernel image is available for execution on the device 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             6:  Function: buildProgram 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  Source Location: /__w/llvm/llvm/build/_deps/unified-runtime-src/source/adapters/hip/program.cpp:235 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8:  
# | check:28'0     ~
# |             9: terminate called after throwing an instance of 'sycl::_V1::exception' 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:28'1                            ?                                               possible intended match
# |            10:  what(): The program was built for 1 devices 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11: Build program log for 'AMD Radeon RX 6700 XT': 
# | check:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12: ��v� 
# | check:28'0     ~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--

To reproduce

No response

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedhipIssues related to execution on HIP backend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions