From e2deaaba64ef429932fddba161753422de127cc5 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:58:10 +0000 Subject: [PATCH] [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 ## Test Plan ## Test Result ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --- groovy/vars/ck.groovy | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/groovy/vars/ck.groovy b/groovy/vars/ck.groovy index 14539b602c..e4134357a2 100644 --- a/groovy/vars/ck.groovy +++ b/groovy/vars/ck.groovy @@ -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 - """ - } } } }