Skip to content

Commit

Permalink
remove libceed from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed May 21, 2024
1 parent b7e4414 commit 37871e0
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions scripts/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ else
cmake ../ -DCMAKE_BUILD_TYPE="$build_type" -DCHIP_BUILD_HIPBLAS=ON
make all build_tests install -j $(nproc) #&> /dev/null
echo "chipStar build complete."

# Build libCEED
export CHIPSTAR_INSTALL_DIR=`pwd`/install # set CHIPSTAR_INSTALL_DIR to current build dir
export HIP_DIR=${CHIPSTAR_INSTALL_DIR}
export PATH=$PATH:${CHIPSTAR_INSTALL_DIR}/bin
export LIBCEED_DIR=`pwd`/libCEED
../scripts/compile_libceed.sh ${CHIPSTAR_INSTALL_DIR}
fi

module unload opencl/dgpu
Expand All @@ -166,9 +159,6 @@ echo "begin igpu_level0_failed_tests"
# module load level-zero/igpu
# module list
../scripts/check.py ./ igpu level0 --num-threads=${num_threads} --timeout=$timeout --num-tries=$num_tries --modules=on | tee igpu_level0_make_check_result.txt
pushd ${LIBCEED_DIR}
make FC= CC=clang CXX=clang++ BACKENDS="/gpu/hip/ref /gpu/hip/shared /gpu/hip/gen" test -j | tee igpu_level0_make_check_result.txt
popd
# module unload level-zero/igpu
echo "end igpu_level0_failed_tests"

Expand All @@ -177,9 +167,6 @@ echo "begin dgpu_level0_failed_tests"
# module load level-zero/dgpu
# module list
../scripts/check.py ./ dgpu level0 --num-threads=${num_threads} --timeout=$timeout --num-tries=$num_tries --modules=on | tee dgpu_level0_make_check_result.txt
pushd ${LIBCEED_DIR}
make FC= CC=clang CXX=clang++ BACKENDS="/gpu/hip/ref /gpu/hip/shared /gpu/hip/gen" test -j | tee dgpu_level0_make_check_result.txt
popd
# module unload level-zero/dgpu
echo "end dgpu_level0_failed_tests"

Expand All @@ -188,9 +175,6 @@ echo "begin igpu_opencl_failed_tests"
# module load opencl/igpu
# module list
../scripts/check.py ./ igpu opencl --num-threads=${num_threads} --timeout=$timeout --num-tries=$num_tries --modules=on | tee igpu_opencl_make_check_result.txt
pushd ${LIBCEED_DIR}
make FC= CC=clang CXX=clang++ BACKENDS="/gpu/hip/ref /gpu/hip/shared /gpu/hip/gen" test -j | tee igpu_opencl_make_check_result.txt
popd
# module unload opencl/igpu
echo "end igpu_opencl_failed_tests"

Expand All @@ -200,9 +184,6 @@ echo "begin dgpu_opencl_failed_tests"
# module load opencl/dgpu # sets CHIP_BE
# module list
../scripts/check.py ./ dgpu opencl --num-threads=${num_threads} --timeout=$timeout --num-tries=$num_tries --modules=on | tee dgpu_opencl_make_check_result.txt
pushd ${LIBCEED_DIR}
make FC= CC=clang CXX=clang++ BACKENDS="/gpu/hip/ref /gpu/hip/shared /gpu/hip/gen" test -j | tee dgpu_opencl_make_check_result.txt
popd
# module unload opencl/dgpu intel/opencl
echo "end dgpu_opencl_failed_tests"

Expand All @@ -218,18 +199,6 @@ function check_tests {
fi
}

function check_libceed {
file="$1"
if grep -q "not ok" "$file"; then
echo "FAIL"
awk '/Test Summary Report/,EOF' "$file"
return 1
else
echo "PASS"
return 0
fi
}

overall_status=0
set +e
echo "RESULTS:"
Expand All @@ -246,17 +215,4 @@ do
fi
done

for test_result in dgpu_opencl_make_check_result.txt \
igpu_opencl_make_check_result.txt \
igpu_level0_make_check_result.txt \
dgpu_level0_make_check_result.txt
do
echo -n "${test_result}: "
check_libceed "${test_result}"
test_status=$?
if [ $test_status -eq 1 ]; then
overall_status=1
fi
done

exit $overall_status

0 comments on commit 37871e0

Please sign in to comment.