Skip to content

Commit ef888bc

Browse files
committed
[HIP] Make test rocm-detect.hip more stable
Some downstream clang is configured to add -rpath to HIP runtime for ld. Also clang may use code object version by default. Make this test result not affected by those. Reviewed by: Joseph Huber Differential Revision: https://reviews.llvm.org/D157243
1 parent aac8acb commit ef888bc

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

clang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_abi_version_400.bc

Whitespace-only changes.

clang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_abi_version_500.bc

Whitespace-only changes.

clang/test/Driver/rocm-detect.hip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@
123123

124124
// HIP-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc"
125125
// HIP-PATH: "-idirafter" "[[HIP_PATH:.*/myhip]]/include"
126-
// HIP-PATH: "-L[[HIP_PATH]]/lib" "-lamdhip64"
126+
// HIP-PATH: "-L[[HIP_PATH]]/lib" {{.*}}"-lamdhip64"
127127

128128
// ROCM-PATH: ROCm installation search path: [[ROCM_PATH:.*/Inputs/rocm]]
129129
// ROCM-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc"
130130
// ROCM-PATH: "-idirafter" "[[ROCM_PATH]]/include"
131-
// ROCM-PATH: "-L[[ROCM_PATH]]/lib" "-lamdhip64"
131+
// ROCM-PATH: "-L[[ROCM_PATH]]/lib" {{.*}}"-lamdhip64"
132132

133133
// ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm
134134
// ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm-3.10.0

0 commit comments

Comments
 (0)