diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2021-10-13 11:18:18 -0400 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-10-20 16:50:49 -0700 |
commit | 0a5ae011cd23a0acaa212fa0281e662443a01d7d (patch) | |
tree | 2429146684607220ec8b34f2832f3bcc5a9421ab | |
parent | 1a40203f8e94e7ae1b67bed832d8afdbc2c65a29 (diff) | |
download | llvm-0a5ae011cd23a0acaa212fa0281e662443a01d7d.zip llvm-0a5ae011cd23a0acaa212fa0281e662443a01d7d.tar.gz llvm-0a5ae011cd23a0acaa212fa0281e662443a01d7d.tar.bz2 |
[HIP] Fix test rcom-detect.hip
This patches fixes https://bugs.llvm.org/show_bug.cgi?id=51404
Some builds use custom resource directory for clang, therefore the test
cannot assume default resource directory for clang. Use -resource-dir
to force it.
Differential Revision: https://reviews.llvm.org/D111726
(cherry picked from commit 1439df00fc5e6dfffeb6a99e3537f6de2e539785)
-rw-r--r-- | clang/test/Driver/rocm-detect.hip | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Driver/rocm-detect.hip b/clang/test/Driver/rocm-detect.hip index 247e106..5b13988 100644 --- a/clang/test/Driver/rocm-detect.hip +++ b/clang/test/Driver/rocm-detect.hip @@ -42,6 +42,7 @@ // RUN: cp -r %S/Inputs/rocm-spack %T // RUN: ln -fs %clang %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang // RUN: %T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin/clang -### -v \ +// RUN: -resource-dir=%T/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/lib/clang \ // RUN: -target x86_64-linux-gnu --cuda-gpu-arch=gfx900 --print-rocm-search-dirs %s 2>&1 \ // RUN: | FileCheck -check-prefixes=SPACK %s @@ -83,7 +84,7 @@ // SPACK: ROCm installation search path (Spack 4.0.0): [[DIR:.*]] // SPACK: ROCm installation search path: [[CLANG:.*]] // SPACK: ROCm installation search path: [[DIR]]/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z -// SPACK: ROCm installation search path: [[CLANG]]/{{(llvm/)?}}lib{{[0-9]*}}/clang/{{[0-9.]+}} +// SPACK: ROCm installation search path: [[DIR]]/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/lib/clang // SPACK: ROCm installation search path: /opt/rocm // SPACK: InstalledDir: [[DIR]]/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/bin // SPACK: Found HIP installation: [[DIR]]/hip-4.0.0-5f63slrursbrvfe2txrrjkynbsywsob5, version 4.0.20214-a2917cd |