[PATCH] D84068: AMDGPU/clang: Search resource directory for device libraries

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 12:10:14 PDT 2020


arsenm created this revision.
arsenm added reviewers: yaxunl, tra.
Herald added subscribers: kerbowa, t-tye, tpr, dstuttard, nhaehnle, wdng, jvesely, kzhuravl.

This should be the preferred way of locating the libraries, and it's a
packaging problem to ensure the libraries are symlinked into the
resource directory.

      

This takes precedence over searching for the rocm installation, but
 check an explicit --hip-device-lib-path first.


https://reviews.llvm.org/D84068

Files:
  clang/lib/Driver/ToolChains/AMDGPU.cpp
  clang/lib/Driver/ToolChains/ROCm.h
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/hip.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/ockl.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_correctly_rounded_sqrt_off.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_correctly_rounded_sqrt_on.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_daz_opt_off.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_daz_opt_on.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_finite_only_off.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_finite_only_on.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_isa_version_1010.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_isa_version_1011.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_isa_version_1012.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_isa_version_803.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_isa_version_900.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_unsafe_math_off.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_unsafe_math_on.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_wavefrontsize64_off.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/oclc_wavefrontsize64_on.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/ocml.bc
  clang/test/Driver/Inputs/resource_dir/lib/amdhsa/amdgcn/opencl.bc
  clang/test/Driver/hip-device-libs-resource-dir.hip

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84068.278875.patch
Type: text/x-patch
Size: 8225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200717/57d418cd/attachment-0001.bin>


More information about the cfe-commits mailing list