[clang] [clang-repl] Initialized HIP environment for clang-repl (PR #217582)

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 05:10:30 PDT 2026


Meinersbur wrote:

Getting a test failure from this:
```
FAIL: Clang :: Interpreter/HIP/hip-environment.hip (21 of 26059)
******************** TEST 'Clang :: Interpreter/HIP/hip-environment.hip' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 9
not /home/meinersbur/src/llvm/main/release/bin/clang-repl -cuda -hip --offload-arch=gfx1100 2>&1 | /home/meinersbur/src/llvm/main/release/bin/FileCheck /home/meinersbur/src/llvm/main/_src/clang/test/Interpreter/HIP/hip-environment.hip
# executed command: not /home/meinersbur/src/llvm/main/release/bin/clang-repl -cuda -hip --offload-arch=gfx1100
# executed command: /home/meinersbur/src/llvm/main/release/bin/FileCheck /home/meinersbur/src/llvm/main/_src/clang/test/Interpreter/HIP/hip-environment.hip
# .---command stderr------------
# | /home/meinersbur/src/llvm/main/_src/clang/test/Interpreter/HIP/hip-environment.hip:11:11: error: CHECK: expected string not found in input
# | // CHECK: HIP environment is initialized but not supported as of now.
# |           ^
# | <stdin>:1:1: note: scanning from here
# | clang-repl: libamdhip64.so: cannot open shared object file: No such file or directory
# | ^
# | <stdin>:1:41: note: possible intended match here
# | clang-repl: libamdhip64.so: cannot open shared object file: No such file or directory
# |                                         ^
# |
# | Input file: <stdin>
# | Check file: /home/meinersbur/src/llvm/main/_src/clang/test/Interpreter/HIP/hip-environment.hip
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# |             1: clang-repl: libamdhip64.so: cannot open shared object file: No such file or directory
# | check:11'0    {                                                                                      } search range (exclusive bounds)
# | check:11'1                                                                                             error: no match found in search range
# | check:11'2                                             ?                                               possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
```

https://github.com/llvm/llvm-project/pull/217582


More information about the cfe-commits mailing list