From 3c95cd1d2fb19e75fad6cda1ab2220ce1850196b Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:13:12 -0500 Subject: Adding Github Actino CI --- .github/workflows/main.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..115b11b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,63 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the mydev branch + push: + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build-GTX480: + runs-on: ubuntu-latest + container: + image: tgrogers/gpgpu-sim_regress:volta_update + env: + 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 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Run Simulation + run: /bin/bash $GITHUB_WORKSPACE/travis.sh + build-TITANV: + runs-on: ubuntu-latest + container: + image: tgrogers/gpgpu-sim_regress:volta_update + 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 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Run Simulation + run: /bin/bash $GITHUB_WORKSPACE/travis.sh + build-TITANV-LOCALXBAR: + runs-on: ubuntu-latest + container: + image: tgrogers/gpgpu-sim_regress:volta_update + 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 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Run Simulation + run: /bin/bash $GITHUB_WORKSPACE/travis.sh -- cgit v1.3 From b2f0ebee9a964b93882188d84e6ccd0f61996087 Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:16:57 -0500 Subject: update CI scripts --- .github/workflows/main.yml | 36 ++++++++++++++++++------------------ short-tests.sh | 22 ++++++++++++++++++++++ travis.sh | 24 ------------------------ 3 files changed, 40 insertions(+), 42 deletions(-) create mode 100755 short-tests.sh delete mode 100755 travis.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 115b11b..a5a736a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,48 +16,48 @@ jobs: build-GTX480: runs-on: ubuntu-latest container: - image: tgrogers/gpgpu-sim_regress:volta_update + image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 env: 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 + # 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 # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout - name: Run Simulation - run: /bin/bash $GITHUB_WORKSPACE/travis.sh + run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh build-TITANV: runs-on: ubuntu-latest container: - image: tgrogers/gpgpu-sim_regress:volta_update + image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 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 + # 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 # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout - name: Run Simulation - run: /bin/bash $GITHUB_WORKSPACE/travis.sh + run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh build-TITANV-LOCALXBAR: runs-on: ubuntu-latest container: - image: tgrogers/gpgpu-sim_regress:volta_update + image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 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 + # 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 # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout - name: Run Simulation - run: /bin/bash $GITHUB_WORKSPACE/travis.sh + run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh diff --git a/short-tests.sh b/short-tests.sh new file mode 100755 index 0000000..bb1c669 --- /dev/null +++ b/short-tests.sh @@ -0,0 +1,22 @@ +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 + +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 + +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 -l local +./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress -j procman diff --git a/travis.sh b/travis.sh deleted file mode 100755 index bbdd19a..0000000 --- a/travis.sh +++ /dev/null @@ -1,24 +0,0 @@ -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 - -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 - -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 -l local -./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress -j procman -- cgit v1.3 From 2bbfb8b3e2d6a5db1079c8a1077a08ad208ad38d Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:18:01 -0500 Subject: uses actions/checkout@v4 --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5a736a..382095e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout + - uses: actions/checkout@v4 - name: Run Simulation run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh build-TITANV: @@ -42,7 +42,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout + - uses: actions/checkout@v4 - name: Run Simulation run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh build-TITANV-LOCALXBAR: @@ -58,6 +58,6 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout + - uses: actions/checkout@v4 - name: Run Simulation run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh -- cgit v1.3 From 77aefacafa0af7d45c407d772bd493397c6e1ae5 Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:08:26 -0500 Subject: fix dubious ownership --- short-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/short-tests.sh b/short-tests.sh index bb1c669..44f265a 100755 --- a/short-tests.sh +++ b/short-tests.sh @@ -13,6 +13,8 @@ if [ ! -n "$GPUAPPS_ROOT" ]; then exit; fi +git config --system --add safe.directory '*' + export PATH=$CUDA_INSTALL_PATH/bin:$PATH source ./setup_environment make -j -- cgit v1.3 From 1bdb39acb89ce1203d4fc96a00ce3c3f51fe72b8 Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:49:30 -0500 Subject: remove fermi and add newer gen cards --- .github/workflows/main.yml | 51 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 382095e..742a906 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,15 +13,12 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - build-GTX480: + build-TITANV: runs-on: ubuntu-latest container: image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 env: - 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 + CONFIG: TITANV # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -29,15 +26,13 @@ jobs: - uses: actions/checkout@v4 - name: Run Simulation run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh - build-TITANV: + + build-TITANV-LOCALXBAR: runs-on: ubuntu-latest container: image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 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 + CONFIG: TITANV-LOCALXBAR # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -45,15 +40,41 @@ jobs: - uses: actions/checkout@v4 - name: Run Simulation run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh - build-TITANV-LOCALXBAR: + + build-QV100: runs-on: ubuntu-latest container: image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 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 + CONFIG: QV100 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + - name: Run Simulation + run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh + + build-2060: + runs-on: ubuntu-latest + container: + image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 + env: + CONFIG: RTX2060 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + - name: Run Simulation + run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh + + build-3070: + runs-on: ubuntu-latest + container: + image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 + env: + CONFIG: RTX3070 # Steps represent a sequence of tasks that will be executed as part of the job steps: -- cgit v1.3 From d935bd167dd5806cc9518eae69176c868bffc0d9 Mon Sep 17 00:00:00 2001 From: JRPan <25518778+JRPan@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:12:47 -0500 Subject: rename ci tests --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 742a906..c639ff3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: Short-Tests # Controls when the workflow will run on: -- cgit v1.3