mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-28 18:56:59 +00:00
[rocm-libraries] ROCm/rocm-libraries#8591 (commit 5210ae6)
[CK] fix daily hipTensor tests. ## Motivation Had to change the way hipTensor is cloned to make sure it doesn't erase CK installation and uses the correct path for the installation. Also added the "install" target every time we build and test everything, so we could use CK for testing third-party libs that depend on it. ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This commit is contained in:
committed by
assistant-librarian[bot]
parent
1762eaeaec
commit
e2deaaba64
@@ -905,11 +905,11 @@ def cmake_build(Map conf=[:]){
|
||||
else{ //run all tests
|
||||
if(!setup_args.contains("gfx1250")){
|
||||
echo "Full test suite requested (RUN_ALL_UNIT_TESTS=true or develop branch)"
|
||||
sh "ninja -j${nt} check"
|
||||
sh "ninja -j${nt} install check"
|
||||
}
|
||||
else{ //do not run tests on gfx1250, just build everything
|
||||
echo "Building for gfx1250"
|
||||
sh "ninja -j${nt}"
|
||||
sh "ninja -j${nt} install"
|
||||
}
|
||||
if (params.RUN_ROCM_CK_TESTS) {
|
||||
sh 'ninja check-rocm-ck'
|
||||
@@ -1012,22 +1012,13 @@ def buildAndTest(Map conf=[:]){
|
||||
if (params.hipTensor_test && arch == "gfx90a" ){
|
||||
// build and test hipTensor on gfx90a node
|
||||
sh """#!/bin/bash
|
||||
rm -rf rocm-libraries
|
||||
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/hiptensor
|
||||
git sparse-checkout add projects/hiptensor
|
||||
git checkout "${params.hipTensor_branch}"
|
||||
cd projects/hiptensor && mkdir -p build &&
|
||||
CC=hipcc CXX=hipcc cmake -Bbuild . -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/projects/composablekernel/install" &&
|
||||
cmake --build build -- -j &&
|
||||
ctest --test-dir build
|
||||
"""
|
||||
dir("rocm-libraries/projects/hiptensor"){
|
||||
sh """#!/bin/bash
|
||||
mkdir -p build
|
||||
ls -ltr
|
||||
CC=hipcc CXX=hipcc cmake -Bbuild . -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/install"
|
||||
cmake --build build -- -j
|
||||
ctest --test-dir build
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user