yaxunl created this revision. yaxunl added reviewers: MaskRay, jhuber6. Herald added subscribers: kerbowa, jvesely. Herald added a project: All. yaxunl requested review of this revision.
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. https://reviews.llvm.org/D157243 Files: clang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_abi_version_400.bc clang/test/Driver/Inputs/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z/amdgcn/bitcode/oclc_abi_version_500.bc clang/test/Driver/rocm-detect.hip Index: clang/test/Driver/rocm-detect.hip =================================================================== --- clang/test/Driver/rocm-detect.hip +++ clang/test/Driver/rocm-detect.hip @@ -123,12 +123,12 @@ // HIP-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc" // HIP-PATH: "-idirafter" "[[HIP_PATH:.*/myhip]]/include" -// HIP-PATH: "-L[[HIP_PATH]]/lib" "-lamdhip64" +// HIP-PATH: "-L[[HIP_PATH]]/lib" {{.*}}"-lamdhip64" // ROCM-PATH: ROCm installation search path: [[ROCM_PATH:.*/Inputs/rocm]] // ROCM-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc" // ROCM-PATH: "-idirafter" "[[ROCM_PATH]]/include" -// ROCM-PATH: "-L[[ROCM_PATH]]/lib" "-lamdhip64" +// ROCM-PATH: "-L[[ROCM_PATH]]/lib" {{.*}}"-lamdhip64" // ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm // ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm-3.10.0
Index: clang/test/Driver/rocm-detect.hip =================================================================== --- clang/test/Driver/rocm-detect.hip +++ clang/test/Driver/rocm-detect.hip @@ -123,12 +123,12 @@ // HIP-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc" // HIP-PATH: "-idirafter" "[[HIP_PATH:.*/myhip]]/include" -// HIP-PATH: "-L[[HIP_PATH]]/lib" "-lamdhip64" +// HIP-PATH: "-L[[HIP_PATH]]/lib" {{.*}}"-lamdhip64" // ROCM-PATH: ROCm installation search path: [[ROCM_PATH:.*/Inputs/rocm]] // ROCM-PATH: "-mlink-builtin-bitcode" "[[ROCM_PATH]]/amdgcn/bitcode/oclc_isa_version_1010.bc" // ROCM-PATH: "-idirafter" "[[ROCM_PATH]]/include" -// ROCM-PATH: "-L[[ROCM_PATH]]/lib" "-lamdhip64" +// ROCM-PATH: "-L[[ROCM_PATH]]/lib" {{.*}}"-lamdhip64" // ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm // ROCM-REL: ROCm installation search path: {{.*}}/opt/rocm-3.10.0
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits