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: [PATCH 1/6] 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 000000000..115b11b23 --- /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 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: [PATCH 2/6] update CI scripts --- .github/workflows/main.yml | 36 ++++++++++++++++++------------------ travis.sh => short-tests.sh | 2 -- 2 files changed, 18 insertions(+), 20 deletions(-) rename travis.sh => short-tests.sh (94%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 115b11b23..a5a736adb 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/travis.sh b/short-tests.sh similarity index 94% rename from travis.sh rename to short-tests.sh index bbdd19acf..bb1c6695a 100755 --- a/travis.sh +++ b/short-tests.sh @@ -17,8 +17,6 @@ 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 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: [PATCH 3/6] 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 a5a736adb..382095e0c 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 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: [PATCH 4/6] fix dubious ownership --- short-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/short-tests.sh b/short-tests.sh index bb1c6695a..44f265a96 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 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: [PATCH 5/6] 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 382095e0c..742a90613 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: 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: [PATCH 6/6] 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 742a90613..c639ff3fb 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: