Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/build-llamacpp-rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
gfx_target:
description: 'AMD GPU targets (comma-separated)'
required: false
default: 'gfx1151,gfx1150,gfx120X,gfx110X'
default: 'gfx1151,gfx1150,gfx120X,gfx110X,gfx103X'
rocm_version:
description: 'ROCm version to use (e.g., 7.11.0a20251205) or "latest" to auto-detect'
required: false
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:

# Add appropriate suffixes for different GPU targets
$s3Target = $currentTarget
if ($currentTarget -eq "gfx110X") {
if ($currentTarget -eq "gfx103X" -or $currentTarget -eq "gfx110X") {
$s3Target = "$currentTarget-dgpu"
Write-Host "Using S3 target with -dgpu suffix: $s3Target"
} elseif ($currentTarget -eq "gfx120X") {
Expand Down Expand Up @@ -273,6 +273,8 @@ jobs:

if "%current_target%"=="gfx110X" (
set "mapped_target=gfx1100;gfx1101;gfx1102"
) else if "%current_target%"=="gfx103X" (
set "mapped_target=gfx1030"
Comment thread
djismgaming marked this conversation as resolved.
Outdated
) else if "%current_target%"=="gfx1151" (
set "mapped_target=gfx1151"
) else if "%current_target%"=="gfx1150" (
Expand Down Expand Up @@ -336,6 +338,7 @@ jobs:
# Copy files matching patterns and specific names
$filesToCopy = @(
"amdhip64_*.dll",
"rocm_kpack.dll",
"amd_comgr*.dll",
"libhipblas.dll",
"rocblas.dll",
Expand Down Expand Up @@ -544,7 +547,7 @@ jobs:

# Add appropriate suffixes for different GPU targets
s3_target="$current_target"
if [ "$current_target" = "gfx110X" ]; then
if [[ "$current_target" = "gfx103X" || "$current_target" = "gfx110X" ]]; then
s3_target="${current_target}-dgpu"
echo "Using S3 target with -dgpu suffix: $s3_target"
elif [ "$current_target" = "gfx120X" ]; then
Expand Down Expand Up @@ -692,6 +695,8 @@ jobs:

if [ "$current_target" = "gfx110X" ]; then
mapped_target="gfx1100;gfx1101;gfx1102"
elif [ "$current_target" = "gfx103X" ]; then
mapped_target="gfx1030"
Comment thread
djismgaming marked this conversation as resolved.
Outdated
elif [ "$current_target" = "gfx1151" ]; then
mapped_target="gfx1151"
elif [ "$current_target" = "gfx1150" ]; then
Expand Down Expand Up @@ -786,6 +791,7 @@ jobs:
cp -v /opt/rocm/lib/libhsa-runtime64.so* "$build_bin_path/" 2>/dev/null || echo "libhsa-runtime64.so* not found"
cp -v /opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_numa.so* "$build_bin_path/" 2>/dev/null || echo "librocm_sysdeps_numa.so* not found"
cp -v /opt/rocm/lib/librocroller.so* "$build_bin_path/" 2>/dev/null || echo "librocroller.so* not found"
cp -v /opt/rocm/lib/librocm_kpack.so* "$build_bin_path/" 2>/dev/null || echo "librocm_kpack.so* not found"
cp -v /opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_z.so* "$build_bin_path/" 2>/dev/null || echo "librocm_sysdeps_z.so* not found"
cp -v /opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_zstd.so* "$build_bin_path/" 2>/dev/null || echo "librocm_sysdeps_zstd.so* not found"
cp -v /opt/rocm/lib/llvm/lib/libLLVM.so* "$build_bin_path/" 2>/dev/null || echo "libLLVM.so* not found"
Expand Down
Loading