Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete workspace before starting the build #3319

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def hipBuildTest(String backendLabel) {
cd build
# Check if backend label contains string "amd" or backend host is a server with amd gpu
if [[ $backendLabel =~ amd ]]; then
cmake -DCLR_BUILD_HIP=ON -DHIP_PATH=\$PWD/install -DHIPCC_BIN_DIR=\$HIPCC_DIR/bin -DHIP_COMMON_DIR=\$HIP_DIR -DCMAKE_PREFIX_PATH="/opt/rocm/" -DCMAKE_INSTALL_PREFIX=\$PWD/install ..
cmake -DCLR_BUILD_HIP=ON -DHIP_PATH=\$CLR_DIR/build/install -DHIPCC_BIN_DIR=\$HIPCC_DIR/bin -DHIP_COMMON_DIR=\$HIP_DIR -DCMAKE_PREFIX_PATH="/opt/rocm/" -DCMAKE_INSTALL_PREFIX=\$CLR_DIR/build/install ..
else
cmake -DCLR_BUILD_HIP=ON -DHIP_PLATFORM=nvidia -DHIPCC_BIN_DIR=\$HIPCC_DIR/bin -DHIP_COMMON_DIR=\$HIP_DIR -DCMAKE_INSTALL_PREFIX=\$PWD/install ..
cmake -DCLR_BUILD_HIP=ON -DHIP_PLATFORM=nvidia -DHIPCC_BIN_DIR=\$HIPCC_DIR/bin -DHIP_COMMON_DIR=\$HIP_DIR -DCMAKE_INSTALL_PREFIX=\$CLR_DIR/build/install ..
fi
make -j\$(nproc)
make install -j\$(nproc)
Expand Down
35 changes: 35 additions & 0 deletions .jenkins/amd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

#!/bin/bash
set -x

export WORKSPACE=$PWD/hipanl
cd ${WORKSPACE}


cd ${WORKSPACE}/clr
rm -rf build
mkdir -p build
cd build

cmake -DCLR_BUILD_HIP=ON -DHIP_PATH=$PWD/install -DHIPCC_BIN_DIR=$HIPCC_DIR/bin -DHIP_COMMON_DIR=$HIP_DIR -DCMAKE_PREFIX_PATH="/opt/rocm/" -DCMAKE_INSTALL_PREFIX=$PWD/install ..


make -j$(nproc)
make install -j$(nproc)


cd ${WORKSPACE}/hip-tests
export HIP_PATH="${CLR_DIR}"/build/install

rm -rf build
mkdir -p build
cd build
echo "testing $HIP_PATH"

cmake -DHIP_PLATFORM=amd -DHIP_PATH=$CLR_DIR/build/install ../catch

make -j$(nproc) build_tests

cd ${WORKSPACE}/hip-tests
cd build
ctest --overwrite BuildDirectory=. --output-junit hiptest_output_catch_amd.xml
42 changes: 42 additions & 0 deletions .jenkins/nvidia.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
set -x

export WORKSPACE=$PWD/hipanl
cd ${WORKSPACE}


cd ${WORKSPACE}/clr
rm -rf build
mkdir -p build
cd build

cmake -DCLR_BUILD_HIP=ON -DHIP_PLATFORM=nvidia -DHIPCC_BIN_DIR=$HIPCC_DIR/bin -DHIP_COMMON_DIR=$HIP_DIR -DCMAKE_INSTALL_PREFIX=$PWD/install ..


make -j$(nproc)
make install -j$(nproc)


cd ${WORKSPACE}/hip-tests
export HIP_PATH="${CLR_DIR}"/build/install

rm -rf build
mkdir -p build
cd build
echo "testing $HIP_PATH"


export HIP_PLATFORM=nvidia
cmake -DHIP_PLATFORM=nvidia -DHIP_PATH=$CLR_DIR/build/install ../catch


make -j$(nproc) build_tests



cd ${WORKSPACE}/hip-tests
cd build
ctest --overwrite BuildDirectory=. --output-junit hiptest_output_catch_nvidia.xml -E 'Unit_hipMemcpyHtoD_Positive_Synchronization_Behavior|Unit_hipMemcpy_Positive_Synchronization_Behavior|Unit_hipFreeNegativeHost'