From 8ce4e6d3ad69112668e4969db65a71bf7a995dc8 Mon Sep 17 00:00:00 2001 From: tgrogers Date: Mon, 13 Jul 2020 13:05:41 -0400 Subject: updating travis to use the latest infrastrcutre and not use that nasty single-line command line for docker. Also since we don't need torque anymore - none of that runner user stuff is necessary --- travis.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 travis.sh (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh new file mode 100755 index 0000000..247a516 --- /dev/null +++ b/travis.sh @@ -0,0 +1,24 @@ +if [ ! -n "$CUDA_INSTALL_PATH" ]; then + echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH."; + exit; +fi + +if [ ! -n "$CONFIG" ]; then + echo "ERROR ** set the CONFIG env variable to one of those found in ./accel-sim-framework/util/job_launching/configs/define-standard-cfgs.yml"; + exit; +fi + +export PATH=$CUDA_INSTALL_PATH/bin:$PATH +source ./setup_environment +make -j + +rm -rf gpu-app-collection +git clone https://github.com/accel-sim/gpu-app-collection.git +source gpu-app-collection/src/setup_environment +make -j -C gpu-app-collection/src rodinia_2.0-ft +./gpu-app-collection/get_regression_data.sh + +rm -rf accel-sim-framework +git clone https://github.com/accel-sim/accel-sim-framework.git +./accel-sim-framework/util/job_launching/run_simulations.py -C $CONFIG -B rodinia_2.0-ft -N regress +./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress -- cgit v1.3 From 693b35f140dfe84673280681ee5b3c803ec912be Mon Sep 17 00:00:00 2001 From: tgrogers Date: Mon, 13 Jul 2020 13:27:30 -0400 Subject: a few changes to the travis script --- travis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index 247a516..253fa17 100755 --- a/travis.sh +++ b/travis.sh @@ -15,9 +15,10 @@ make -j rm -rf gpu-app-collection git clone https://github.com/accel-sim/gpu-app-collection.git source gpu-app-collection/src/setup_environment -make -j -C gpu-app-collection/src rodinia_2.0-ft +make rodinia_2.0-ft -j -C gpu-app-collection/src ./gpu-app-collection/get_regression_data.sh +pip install psutil rm -rf accel-sim-framework git clone https://github.com/accel-sim/accel-sim-framework.git ./accel-sim-framework/util/job_launching/run_simulations.py -C $CONFIG -B rodinia_2.0-ft -N regress -- cgit v1.3 From 82c20da170e7f64f8656007a7497491e219a74f9 Mon Sep 17 00:00:00 2001 From: tgrogers Date: Mon, 13 Jul 2020 22:09:13 -0400 Subject: Update travis to use the procman instead of torque explicitly. This was necessary becasue the old docker image has torque on it - but we are just not going to use it. For convience - the scripts auto-select your job launching software - but that fails because we have to execute the docker images as the 'runner' user to use torque. And I stopped doign that because it just makes things more complicated for no reason. In reality we can use a docker image that no longer has torque now that ProcMan exists in Accel-Sim --- travis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'travis.sh') diff --git a/travis.sh b/travis.sh index 253fa17..2fa8200 100755 --- a/travis.sh +++ b/travis.sh @@ -21,5 +21,5 @@ make rodinia_2.0-ft -j -C gpu-app-collection/src pip install psutil rm -rf accel-sim-framework git clone https://github.com/accel-sim/accel-sim-framework.git -./accel-sim-framework/util/job_launching/run_simulations.py -C $CONFIG -B rodinia_2.0-ft -N regress -./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress +./accel-sim-framework/util/job_launching/run_simulations.py -C $CONFIG -B rodinia_2.0-ft -N regress -l local +./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress -j procman -- cgit v1.3 From ce3f02dc00e13ccd0a3929282231c7e0116be4b5 Mon Sep 17 00:00:00 2001 From: tgrogers Date: Mon, 13 Jul 2020 23:22:16 -0400 Subject: Don't build the apps - because we need this ancient gcc for the 4.2 stuff. Just use the prebuilt apps that already exist on the docker image. --- .travis.yml | 4 ++++ travis.sh | 11 +++++------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'travis.sh') diff --git a/.travis.yml b/.travis.yml index 2a53f4d..2c75e69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,16 +13,19 @@ matrix: - CONFIG=GTX480 - CUDA_INSTALL_PATH=/usr/local/cuda-4.2/ - PTXAS_CUDA_INSTALL_PATH=/usr/local/cuda-4.2/ + - GPUAPPS_ROOT=/home/runner/gpgpu-sim_simulations/benchmarks - services: docker env: - CONFIG=TITANV - CUDA_INSTALL_PATH=/usr/local/cuda-9.1/ - PTXAS_CUDA_INSTALL_PATH=/usr/local/cuda-9.1/ + - GPUAPPS_ROOT=/home/runner/gpgpu-sim_simulations/benchmarks - services: docker env: - CONFIG=TITANV-LOCALXBAR - CUDA_INSTALL_PATH=/usr/local/cuda-9.1/ - PTXAS_CUDA_INSTALL_PATH=/usr/local/cuda-9.1/ + - GPUAPPS_ROOT=/home/runner/gpgpu-sim_simulations/benchmarks script: - > @@ -30,5 +33,6 @@ script: --env CONFIG=$CONFIG --env PTXAS_CUDA_INSTALL_PATH=$PTXAS_CUDA_INSTALL_PATH --env CUDA_INSTALL_PATH=$CUDA_INSTALL_PATH + --env GPUAPPS_ROOT=$GPUAPPS_ROOT -v `pwd`:/gpgpu-sim:rw tgrogers/gpgpu-sim_regress:volta_update /bin/bash travis.sh diff --git a/travis.sh b/travis.sh index 2fa8200..bbdd19a 100755 --- a/travis.sh +++ b/travis.sh @@ -8,16 +8,15 @@ if [ ! -n "$CONFIG" ]; then exit; fi +if [ ! -n "$GPUAPPS_ROOT" ]; then + echo "ERROR ** GPUAPPS_ROOT to a location where the apps have been compiled"; + exit; +fi + export PATH=$CUDA_INSTALL_PATH/bin:$PATH source ./setup_environment make -j -rm -rf gpu-app-collection -git clone https://github.com/accel-sim/gpu-app-collection.git -source gpu-app-collection/src/setup_environment -make rodinia_2.0-ft -j -C gpu-app-collection/src -./gpu-app-collection/get_regression_data.sh - pip install psutil rm -rf accel-sim-framework git clone https://github.com/accel-sim/accel-sim-framework.git -- cgit v1.3