update CTest

This commit is contained in:
Ruobing Han 2022-09-25 12:58:58 -04:00
parent 118af6c074
commit a5235206e7
4 changed files with 9 additions and 4 deletions

View File

@ -35,7 +35,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=${{ github.workspace }}/cuda-10.1
cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=${{ github.workspace }}/cuda-10.1 -DHETERO_MARK_DATA=${{ github.workspace }}/data
make -j8
- name: clone SC evaluation code
run: |

View File

@ -53,4 +53,6 @@ set(GCC_COVERAGE_LINK_FLAGS
add_subdirectory(compilation)
add_subdirectory(runtime)
enable_testing()
option(HETERO_MARK_DATA "The path to download hetero-mark dataset." /tmp/data)
add_subdirectory(tests)

View File

@ -18,5 +18,6 @@ foreach(case IN LISTS TESTCASES)
NAME "${case}"
COMMAND
${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/runHeteroMark.sh ${case}
${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR})
${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR}
${HETERO_MARK_DATA})
endforeach()

View File

@ -4,12 +4,14 @@ TestCase=$1
CUDA_PATH=$2
HeteroMark_PATH=$3
CuPBoP_BUILD_PATH=$4
DATASET_PATH=/tmp/data
DATASET_PATH=$5
if [ ! -d $DATASET_PATH ]; then
echo "Download Hetero Mark dataset"
cd /tmp
mkdir $DATASET_PATH
cd $DATASET_PATH
wget https://www.dropbox.com/s/ie2hcxw9lfoghg8/data.tar.gz?dl=1
tar -xzf 'data.tar.gz?dl=1'
mv data/* .
fi
mkdir -p $TestCase