Skip to content

[SPIRV][CI] Add ROCm Examples for Linux#3048

Open
idubinov wants to merge 8 commits into
ROCm:amd-stagingfrom
idubinov:amd_staging_ci_try2
Open

[SPIRV][CI] Add ROCm Examples for Linux#3048
idubinov wants to merge 8 commits into
ROCm:amd-stagingfrom
idubinov:amd_staging_ci_try2

Conversation

@idubinov

Copy link
Copy Markdown
  • Build runtime libs, required by ROCm Examples
  • Add test for ROCm Examples into current SPIRV CI pipeline
  • Update upload/download action version due to deprecation

@idubinov idubinov added ci:skip Skip all CI builds/tests for this PR and removed ci:skip Skip all CI builds/tests for this PR labels Jun 26, 2026
- name: Install build deps for runtime build
run: |
dnf install -y --setopt=install_weak_deps=False \
numactl-devel elfutils-libelf-devel libdrm-devel || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of || true here and below?

echo "=== staging/lib after install (comgr files) ==="
ls -la staging/lib/libamd_comgr* 2>&1 || true
- name: Checkout rocm-systems (pinned)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "pinned" here? If actions/checkout version then I think this detail can be omitted

ls -la staging/lib/libamd_comgr* 2>&1 || true
- name: Checkout rocm-systems (pinned)
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, checkout v7 is out

-DCLR_BUILD_HIP=ON \
-DROCM_KPACK_ENABLED=OFF \
-DHIP_ENABLE_ROCPROFILER_REGISTER=OFF \
-DHIPCC_BIN_DIR=

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks strange. What is the purpose of setting this to empty value?

- name: Upload build tree artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this action version is not pinned, but actions/checkout is pinned?

-DCMAKE_HIP_FLAGS="--rocm-path=$STAGING" \
-DCMAKE_HIP_LINK_FLAGS="-L$STAGING/lib -Wl,-rpath,$STAGING/lib" \
-DCMAKE_EXE_LINKER_FLAGS="-L$STAGING/lib -Wl,-rpath,$STAGING/lib"
cmake --build examples-build-Applications -j

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify amount of jobs for -j flag

Comment on lines +171 to +185
# Create hipconfig script for rocPRIM/hipCUB detection
- name: Create hipconfig script
run: |
mkdir -p staging/bin
cat > staging/bin/hipconfig << 'EOF'
#!/bin/bash
case "$1" in
--platform) echo "amd" ;;
--compiler) echo "clang" ;;
--runtime) echo "rocclr" ;;
--hipclangpath) echo "$PWD/build/bin" ;;
*) echo "amd" ;;
esac
EOF
chmod +x staging/bin/hipconfig

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is hipconfig used? The question is why we cannot use existing (?) hipconfig with only specifying custom clang path if it is really needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants