Skip to content

Commit 5b3b58a

Browse files
author
John Doe
committed
Debug 2
1 parent a03af60 commit 5b3b58a

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/build-hipblas-rocm71.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,30 @@ jobs:
130130
sudo apt install -y ccache
131131
export PATH="/usr/lib/ccache:$PATH"
132132
133+
# Set HIP_PATH environment variable
134+
export HIP_PATH="/opt/rocm"
135+
export CMAKE_PREFIX_PATH="/opt/rocm"
136+
133137
# Clean and create build directory
134-
rm -rf build
135138
mkdir -p build
136139
cd build
137140
138141
echo "Building for GPU target: ${{ matrix.gpu_target }}"
139142
140-
# Configure with ROCm 7.1 and specific GPU target (following official build guide)
143+
# Configure with ROCm 7.1 and specific GPU target (Ubuntu 24.04 version)
141144
cmake .. \
142145
-G "Unix Makefiles" \
143146
-DCMAKE_C_COMPILER=clang \
144147
-DCMAKE_CXX_COMPILER=clang++ \
145148
-DSD_HIPBLAS=ON \
146-
-DSD_BUILD_SHARED_LIBS=OFF \
149+
-DSD_BUILD_SHARED_LIBS=ON \
150+
-DGGML_NATIVE=OFF \
147151
-DCMAKE_BUILD_TYPE=Release \
148152
-DGPU_TARGETS="${{ env.GPU_TARGET }}" \
149-
-DAMDGPU_TARGETS="${{ env.GPU_TARGET }}" \
153+
-DAMDGPU_TARGETS="${{ env.GPU_TARGET }}"
150154
151155
# Build with all available cores
152-
cmake --build . --config Release
156+
cmake --build . --config Release --parallel $(nproc)
153157
154158
- name: Test HipBLAS build
155159
run: |
@@ -180,11 +184,20 @@ jobs:
180184
# Copy ROCm libraries and their dependencies
181185
if [ -d "/opt/rocm/lib" ]; then
182186
echo "Copying ROCm libraries..."
187+
188+
# Create rocblas and hipblaslt library directories
189+
mkdir -p package/lib/rocblas/library
190+
mkdir -p package/lib/hipblaslt/library
191+
183192
# Copy HipBLAS libraries
184193
cp /opt/rocm/lib/libhipblas.so* package/lib/ 2>/dev/null || echo "hipblas lib not found"
185194
cp /opt/rocm/lib/librocblas.so* package/lib/ 2>/dev/null || echo "rocblas lib not found"
186195
cp /opt/rocm/lib/libhipblaslt.so* package/lib/ 2>/dev/null || echo "hipblaslt lib not found"
187196
197+
# Copy rocblas and hipblaslt library files
198+
cp -r /opt/rocm/lib/rocblas/library/* package/lib/rocblas/library/ 2>/dev/null || echo "rocblas library files not found"
199+
cp -r /opt/rocm/lib/hipblaslt/library/* package/lib/hipblaslt/library/ 2>/dev/null || echo "hipblaslt library files not found"
200+
188201
# Copy HIP runtime libraries
189202
cp /opt/rocm/lib/libamdhip64.so* package/lib/ 2>/dev/null || echo "amdhip64 lib not found"
190203
cp /opt/rocm/lib/libhiprtc.so* package/lib/ 2>/dev/null || echo "hiprtc lib not found"

0 commit comments

Comments
 (0)