mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 02:02:46 +00:00
Add hipTensor build and test to CK CI. (#990)
* add a hipTensor test to CI
* use jenkins git plugin
* change hipTensor folder location in CI
* change the git method for hipTensor
* run tests usign ctest
* check the hipTensor contents
* only build hipTensor on MI100/200
* pull hipTensor as zip archive
* fix jenkins syntax
* add path to the CK installation
* combine build commands into one shell
* change jenkins syntax for CK installer path
* try different syntax
* allow unzip overwrite
* fix jenkins file syntax
* remove any old versions of hipTensor before building
* add option to select hipTensor branch for testing
[ROCm/composable_kernel commit: 707ad0025f]
This commit is contained in:
@@ -49,6 +49,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
|
||||
vim \
|
||||
nano \
|
||||
zlib1g-dev \
|
||||
zip \
|
||||
openssh-server \
|
||||
clang-format-12 \
|
||||
kmod && \
|
||||
|
||||
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@@ -526,6 +526,26 @@ def Build_CK(Map conf=[:]){
|
||||
stash "ckprofiler_0.2.0_amd64.deb"
|
||||
}
|
||||
}
|
||||
if (params.hipTensor_test && navi_node == 0 ){
|
||||
//build and test hipTensor
|
||||
sh """#!/bin/bash
|
||||
rm -rf "${params.hipTensor_branch}".zip
|
||||
rm -rf hipTensor-"${params.hipTensor_branch}"
|
||||
wget https://github.com/ROCmSoftwarePlatform/hipTensor/archive/refs/heads/"${params.hipTensor_branch}".zip
|
||||
unzip -o "${params.hipTensor_branch}".zip
|
||||
"""
|
||||
dir("hipTensor-${params.hipTensor_branch}"){
|
||||
sh """#!/bin/bash
|
||||
mkdir -p build
|
||||
ls -ltr
|
||||
CC=hipcc CXX=hipcc cmake -Bbuild . -D CMAKE_PREFIX_PATH="/opt/rocm;${env.WORKSPACE}/install"
|
||||
cmake --build build -- -j
|
||||
"""
|
||||
}
|
||||
dir("hipTensor-${params.hipTensor_branch}/build"){
|
||||
sh 'ctest'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -654,6 +674,15 @@ pipeline {
|
||||
name: "DL_KERNELS",
|
||||
defaultValue: false,
|
||||
description: "Select whether to build DL kernels (default: OFF)")
|
||||
booleanParam(
|
||||
name: "hipTensor_test",
|
||||
defaultValue: true,
|
||||
description: "Use the CK build to verify hipTensor build and tests (default: ON)")
|
||||
string(
|
||||
name: 'hipTensor_branch',
|
||||
defaultValue: 'mainline',
|
||||
description: 'Specify which branch of hipTensor to use (default: mainline)')
|
||||
|
||||
}
|
||||
environment{
|
||||
dbuser = "${dbuser}"
|
||||
|
||||
Reference in New Issue
Block a user