build_hip_linux.sh: pick up lib/rocm_sysdeps when the ROCm tree has it (the gfx1151 halo package needed a patched copy in 0.2.0-beta)
This commit is contained in:
1 parent
894d1be1f4
commit
3e7c5d8e1c
1 file changed
+4
-2
@@ -40,7 +40,9 @@ mkdir -p "$OUT"; S=$OUT/build.status
|
||||
st() { echo "$* $(date +%T)" >> "$S"; }
|
||||
: > "$S"
|
||||
export HIP_PLATFORM=amd HIP_COMPILER=clang HIP_RUNTIME=rocclr ROCM_PATH=$HP HIP_PATH=$HP
|
||||
HIPDEFS=(-DCMAKE_HIP_COMPILER=$HP/llvm/bin/clang++ -DCMAKE_HIP_COMPILER_ROCM_ROOT=$HP "-DCMAKE_PREFIX_PATH=$HP;$LIBW"
|
||||
# TheRock 7.14.x dists (the Strix Halo / gfx1151 package) keep libnuma, libz, libdrm ... in lib/rocm_sysdeps; older wheels have no such folder
|
||||
SYSDEPS=""; [ -d "$HP/lib/rocm_sysdeps" ] && SYSDEPS=";$HP/lib/rocm_sysdeps"
|
||||
HIPDEFS=(-DCMAKE_HIP_COMPILER=$HP/llvm/bin/clang++ -DCMAKE_HIP_COMPILER_ROCM_ROOT=$HP "-DCMAKE_PREFIX_PATH=$HP;$LIBW$SYSDEPS"
|
||||
"-DCMAKE_HIP_FLAGS=--rocm-path=$HP --rocm-device-lib-path=$HP/lib/llvm/amdgcn/bitcode")
|
||||
st "start $V ($ARCHS) commit $COMMIT"
|
||||
cd "$SRC" || exit 1
|
||||
@@ -75,7 +77,7 @@ EOJ
|
||||
# the libraries the engine and the GPU reader load (the CPU reader needs only the system's), collected from the build outputs
|
||||
DATA=(--data "$LIBW/lib/rocblas/library=rocblas/library" --data "$LIBW/lib/hipblaslt/library=hipblaslt/library" --data-arch "$DATAARCH")
|
||||
for b in "$OUT/b/strata" "$OUT/bh/bin/strata-vision-hip"; do
|
||||
python3 packaging/collect_libs.py --binary "$b" --search "$LIBW/lib" --search "$HP/lib" --search "$CORE/lib" --search "$CORE/lib/llvm/lib" \
|
||||
python3 packaging/collect_libs.py --binary "$b" --search "$LIBW/lib" --search "$HP/lib" --search "$CORE/lib" --search "$CORE/lib/llvm/lib" ${SYSDEPS:+--search "$HP/lib/rocm_sysdeps/lib"} \
|
||||
--also 'libamd_comgr.so*' --also 'libhiprtc*.so*' --out "$STAGE" \
|
||||
"${DATA[@]}" >> "$OUT/collect.log" 2>&1
|
||||
st "collected for $(basename "$b") rc=$?"
|
||||
|
||||
Reference in new issue
Block a user