Skip to content
Draft
Changes from all 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
72 changes: 72 additions & 0 deletions .github/workflows/testing_hipblaslt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Test hipBLASLt with latest develop branch changes on gfx1250 hardware.
# Uses sparse checkout to clone only required components, builds with install.sh, and runs tests.

name: Test hipBLASLt Develop

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_hipblaslt:
name: Build hipBLASLt # (${{ inputs.amdgpu_family || 'gfx1250' }})
runs-on: 10-09-rocm
timeout-minutes: 240
steps:
- name: Checkout shark-ai
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.10'

- name: Check ROCm
run: |
ls -la /opt/rocm/include/hip/hip_ext_ocp.h 2>/dev/null || echo "hip_ext_ocp.h NOT FOUND in /opt/rocm"
/opt/rocm/bin/amdclang++ --version
cat /opt/rocm/.info/version 2>/dev/null || echo "version file not found"

- name: Checkout TheRock workspace
run: |
python -m venv venv
source venv/bin/activate
which pip

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib/llvm/lib

# Set Python paths for CMake to use the venv Python
export Python3_ROOT_DIR="$VIRTUAL_ENV"
export Python_ROOT_DIR="$VIRTUAL_ENV"
export Python3_EXECUTABLE="$(which python3)"
export Python_EXECUTABLE="$(which python3)"

git clone --no-checkout --filter=blob:none https://github.com/ROCm/rocm-libraries.git
cd rocm-libraries
git sparse-checkout init --cone
git sparse-checkout set projects/hipblaslt shared/origami shared/rocroller shared/mxdatagenerator
git checkout develop

cd projects/hipblaslt
pip install -r tensilelite/requirements.txt
pip install cmake==3.31.10

# build
./install.sh -c -a gfx950
cd tensilelite
invoke build-client
pip install -r requirements-dev.txt -e .
cd ..

# test
export PATH="$(pwd)/build/release/hipblaslt-install/bin/:$PATH"
ls build/release/hipblaslt-install/bin/
which hipblaslt-test
hipblaslt-test 2>&1 | tee hipblaslt_test.log
Loading