ROCm / rocm-cmake

CMake modules used within the ROCm libraries
https://rocm.docs.amd.com/projects/ROCmCMakeBuildTools/en/latest/
MIT License
62 stars 43 forks source link

Add RPATH to tests to point to private libraries. #200

Closed ahsan-ca closed 5 months ago

ahsan-ca commented 5 months ago
readelf -d /opt/rocm/libexec/installed-tests/migraphx/bin/test_verify

Dynamic section at offset 0xab1200 contains 37 entries:
  Tag        Type                         Name/Value
 0x000000000000001d (RUNPATH)            Library runpath: [/code/AMDMIGraphX/libs-issue/AMDMIGraphX/deps/lib:$ORIGIN/../../../../lib:$ORIGIN/../../../../lib/migraphx/lib:/opt/rocm-6.0.2/lib/llvm/lib]
 0x0000000000000001 (NEEDED)             Shared library: [libmigraphx_ref.so.2010000]
 0x0000000000000001 (NEEDED)             Shared library: [libmigraphx_cpu.so.2010000]
 0x0000000000000001 (NEEDED)             Shared library: [libdnnl.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libomp.so]
 0x0000000000000001 (NEEDED)             Shared library: [libmigraphx_gpu.so.2010000]
 0x0000000000000001 (NEEDED)             Shared library: [librocblas.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libMIOpen.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libamdhip64.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libmigraphx.so.2010000]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
ahsan-ca commented 5 months ago

@cgmb @lawruble13 This PR is needed to fix an issue that breaks MIGraphX. Since Paul is away on parental leave, can you please help to merge in the changes?