Skip to content

Commit 45f3eea

Browse files
authored
Fix test rocm-detect.hip (#74872)
Replace %T with %t since %T is deprecated.
1 parent 7ff2ce9 commit 45f3eea

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

clang/test/Driver/rocm-detect.hip

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,39 +78,39 @@
7878
// RUN: | FileCheck -check-prefixes=ROCM-ENV,HIP-PATH %s
7979

8080
// Test detecting latest /opt/rocm-{release} directory.
81-
// RUN: rm -rf %T/opt
82-
// RUN: mkdir -p %T/opt
83-
// RUN: cp -r %S/Inputs/rocm %T/opt/rocm-3.9.0-1234
84-
// RUN: cp -r %S/Inputs/rocm %T/opt/rocm-3.10.0
85-
// RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=gfx1010 --sysroot=%T \
81+
// RUN: rm -rf %t/opt
82+
// RUN: mkdir -p %t/opt
83+
// RUN: cp -r %S/Inputs/rocm %t/opt/rocm-3.9.0-1234
84+
// RUN: cp -r %S/Inputs/rocm %t/opt/rocm-3.10.0
85+
// RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=gfx1010 --sysroot=%t \
8686
// RUN: --print-rocm-search-dirs %s 2>&1 \
8787
// RUN: | FileCheck -check-prefixes=ROCM-REL %s
8888

89-
// Test ROCm installation built by SPACK by invoke clang at %T/rocm-spack/llvm-amdgpu-*
89+
// Test ROCm installation built by SPACK by invoke clang at %t/rocm-spack/llvm-amdgpu-*
9090
// directory through a soft link.
9191

92-
// RUN: rm -rf %T/rocm-spack
93-
// RUN: cp -r %S/Inputs/rocm-spack %T
94-
// RUN: ln -fs %clang %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang
95-
// RUN: %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang -### -v \
96-
// RUN: -resource-dir=%T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/lib/clang \
92+
// RUN: rm -rf %t/rocm-spack
93+
// RUN: cp -r %S/Inputs/rocm-spack %t
94+
// RUN: ln -fs %clang %t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang
95+
// RUN: %t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang -### -v \
96+
// RUN: -resource-dir=%t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/lib/clang \
9797
// RUN: -target x86_64-linux-gnu --cuda-gpu-arch=gfx900 --print-rocm-search-dirs %s 2>&1 \
9898
// RUN: | FileCheck -check-prefixes=SPACK %s
9999

100100
// Test SPACK installation with multiple hip and rocm-device-libs packages of the same
101101
// ROCm release. --hip-path and --rocm-device-lib-path can be used to specify them.
102102

103-
// RUN: cp -r %T/rocm-spack/hip-* %T/rocm-spack/hip-4.0.0-abcd
104-
// RUN: %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang -### -v \
103+
// RUN: cp -r %t/rocm-spack/hip-* %t/rocm-spack/hip-4.0.0-abcd
104+
// RUN: %t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang -### -v \
105105
// RUN: -target x86_64-linux-gnu --cuda-gpu-arch=gfx900 \
106-
// RUN: --hip-path=%T/rocm-spack/hip-4.0.0-abcd \
106+
// RUN: --hip-path=%t/rocm-spack/hip-4.0.0-abcd \
107107
// RUN: %s 2>&1 | FileCheck -check-prefixes=SPACK-SET %s
108108

109109
// Test invalid SPACK ROCm installation missing hip and rocm-device-libs packages.
110110

111-
// RUN: rm -rf %T/rocm-spack/hip-*
112-
// RUN: rm -rf %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn
113-
// RUN: %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang --version 2>&1 \
111+
// RUN: rm -rf %t/rocm-spack/hip-*
112+
// RUN: rm -rf %t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn
113+
// RUN: %t/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang --version 2>&1 \
114114
// RUN: | FileCheck -check-prefixes=SPACK-MISS-SILENT %s
115115

116116
// GFX902-DEFAULTLIBS: error: cannot find ROCm device library for gfx902; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library

0 commit comments

Comments
 (0)