Skip to content

Commit 0e39753

Browse files
authored
Merge pull request #313 from accel-sim/dev
Purdue Updates Merging
2 parents 6b244a5 + 48af0c9 commit 0e39753

File tree

119 files changed

+10170
-2936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+10170
-2936
lines changed

.github/workflows/accelsim.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Test backend changes with Accel-Sim
2+
3+
name: Short-Tests-AccelSim
4+
5+
# Controls when the workflow will run
6+
on:
7+
push:
8+
branches-ignore:
9+
- "gh-readonly-queue**"
10+
merge_group:
11+
pull_request:
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# By default regress against accel-sim's dev branch
17+
env:
18+
ACCELSIM_BRANCH: dev
19+
20+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
21+
jobs:
22+
build-QV100:
23+
runs-on: ubuntu-latest
24+
container:
25+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
26+
27+
# Steps represent a sequence of tasks that will be executed as part of the job
28+
steps:
29+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+
- uses: actions/checkout@v4
31+
- name: Run Simulation
32+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-accelsim.sh
33+

.github/workflows/cmake.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Workflow with cmake build system
2+
name: Short-Tests-CMake
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the mydev branch
7+
push:
8+
branches-ignore:
9+
- "gh-readonly-queue**"
10+
merge_group:
11+
pull_request:
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
build-TITANV:
19+
runs-on: ubuntu-latest
20+
container:
21+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
22+
env:
23+
CONFIG: TITANV
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v4
29+
- name: Run Simulation
30+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-cmake.sh
31+
32+
build-TITANV-LOCALXBAR:
33+
runs-on: ubuntu-latest
34+
container:
35+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
36+
env:
37+
CONFIG: TITANV-LOCALXBAR
38+
39+
# Steps represent a sequence of tasks that will be executed as part of the job
40+
steps:
41+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
42+
- uses: actions/checkout@v4
43+
- name: Run Simulation
44+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-cmake.sh
45+
46+
build-QV100:
47+
runs-on: ubuntu-latest
48+
container:
49+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
50+
env:
51+
CONFIG: QV100
52+
53+
# Steps represent a sequence of tasks that will be executed as part of the job
54+
steps:
55+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56+
- uses: actions/checkout@v4
57+
- name: Run Simulation
58+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-cmake.sh
59+
60+
build-2060:
61+
runs-on: ubuntu-latest
62+
container:
63+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
64+
env:
65+
CONFIG: RTX2060
66+
67+
# Steps represent a sequence of tasks that will be executed as part of the job
68+
steps:
69+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
70+
- uses: actions/checkout@v4
71+
- name: Run Simulation
72+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-cmake.sh
73+
74+
build-3070:
75+
runs-on: ubuntu-latest
76+
container:
77+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
78+
env:
79+
CONFIG: RTX3070
80+
81+
# Steps represent a sequence of tasks that will be executed as part of the job
82+
steps:
83+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
84+
- uses: actions/checkout@v4
85+
- name: Run Simulation
86+
run: /bin/bash $GITHUB_WORKSPACE/short-tests-cmake.sh

.github/workflows/main.yml

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Short-Tests
4+
5+
# Controls when the workflow will run
6+
on:
7+
push:
8+
branches-ignore:
9+
- "gh-readonly-queue**"
10+
merge_group:
11+
pull_request:
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
build-TITANV:
19+
runs-on: ubuntu-latest
20+
container:
21+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
22+
env:
23+
CONFIG: TITANV
24+
25+
# Steps represent a sequence of tasks that will be executed as part of the job
26+
steps:
27+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+
- uses: actions/checkout@v4
29+
- name: Run Simulation
30+
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
31+
32+
build-TITANV-LOCALXBAR:
33+
runs-on: ubuntu-latest
34+
container:
35+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
36+
env:
37+
CONFIG: TITANV-LOCALXBAR
38+
39+
# Steps represent a sequence of tasks that will be executed as part of the job
40+
steps:
41+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
42+
- uses: actions/checkout@v4
43+
- name: Run Simulation
44+
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
45+
46+
build-QV100:
47+
runs-on: ubuntu-latest
48+
container:
49+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
50+
env:
51+
CONFIG: QV100
52+
53+
# Steps represent a sequence of tasks that will be executed as part of the job
54+
steps:
55+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56+
- uses: actions/checkout@v4
57+
- name: Run Simulation
58+
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
59+
60+
build-2060:
61+
runs-on: ubuntu-latest
62+
container:
63+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
64+
env:
65+
CONFIG: RTX2060
66+
67+
# Steps represent a sequence of tasks that will be executed as part of the job
68+
steps:
69+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
70+
- uses: actions/checkout@v4
71+
- name: Run Simulation
72+
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
73+
74+
build-3070:
75+
runs-on: ubuntu-latest
76+
container:
77+
image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
78+
env:
79+
CONFIG: RTX3070
80+
81+
# Steps represent a sequence of tasks that will be executed as part of the job
82+
steps:
83+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
84+
- uses: actions/checkout@v4
85+
- name: Run Simulation
86+
run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
87+
format-code:
88+
if: github.event_name == 'pull_request'
89+
runs-on: tgrogers-raid
90+
needs: [build-TITANV, build-TITANV-LOCALXBAR, build-QV100, build-2060, build-3070]
91+
steps:
92+
- uses: actions/checkout@v4
93+
with:
94+
ref: ${{github.event.pull_request.head.ref}}
95+
repository: ${{github.event.pull_request.head.repo.full_name}}
96+
ssh-key: ''
97+
98+
- name: Run clang-format
99+
run: |
100+
git config user.name "purdue-jenkins"
101+
git config user.email "[email protected]"
102+
git remote set-url origin [email protected]:${{github.event.pull_request.head.repo.full_name}}
103+
git remote -v
104+
/bin/bash ./format-code.sh
105+
if git status --untracked-files=no | grep -q "nothing to commit"; then echo "No changes to commit."; else git commit -a -m "Automated Format"; git push; fi

.github/workflows/sst_integration.yml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Workflow with cmake build system
2+
name: SST Integration Test
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the mydev branch
7+
push:
8+
branches-ignore:
9+
- "gh-readonly-queue**"
10+
pull_request:
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
build-QV100:
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
shell: bash
22+
strategy:
23+
matrix:
24+
# test_type: [simple, medium, long]
25+
test_type: [simple, medium]
26+
container:
27+
image: tgrogers/accel-sim_regress:SST-Integration-Ubuntu-22.04-cuda-11.7-llvm-18.1.8-riscv-gnu-2024.08.06-nightly
28+
env:
29+
CONFIG: QV100
30+
GPU_ARCH: sm_70
31+
32+
# Steps represent a sequence of tasks that will be executed as part of the job
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v4
36+
- name: Build GPGPU-Sim in SST mode
37+
run: |
38+
source ./setup_environment
39+
make -j4
40+
- name: Prepare SST dependencies
41+
run: |
42+
apt install -y openmpi-bin openmpi-common libtool libtool-bin autoconf python3 python3-dev automake build-essential git
43+
# Use personal repo for now
44+
- name: Build SST-Core
45+
run: |
46+
git clone https://github.com/William-An/sst-core.git
47+
cd sst-core
48+
git pull
49+
git checkout devel
50+
./autogen.sh
51+
./configure --prefix=`realpath ../sstcore-install` --disable-mpi --disable-mem-pools
52+
make -j4
53+
make install
54+
cd ..
55+
rm -rf ./sst-core
56+
# Use personal repo for now
57+
- name: Build SST-Elements
58+
run: |
59+
git clone https://github.com/William-An/sst-elements.git
60+
source ./setup_environment
61+
cd sst-elements
62+
git pull
63+
git checkout balar-mmio-vanadis-llvm
64+
./autogen.sh
65+
./configure --prefix=`realpath ../sstelements-install` --with-sst-core=`realpath ../sstcore-install` --with-cuda=$CUDA_INSTALL_PATH --with-gpgpusim=$GPGPUSIM_ROOT
66+
make -j4
67+
make install
68+
# Have to resource the gpu app
69+
# Also fake a SDK since rodinia 2.0 does not need this, speed things up on github
70+
- name: Balar Test
71+
run: |
72+
pip install testtools blessings pygments
73+
source ./setup_environment
74+
mkdir 4.2
75+
mkdir fake_sdk
76+
export NVIDIA_COMPUTE_SDK_LOCATION=$(readlink -f ./fake_sdk)
77+
source $GPUAPPS_ROOT/src/setup_environment sst
78+
rm -rf 4.2
79+
rm -f gpucomputingsdk_4.2.9_linux.run
80+
./sstcore-install/bin/sst-test-elements -w "*balar*${{ matrix.test_type }}*"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ debug_tools/WatchYourStep/ptxjitplus/*.ptx
6161
accel-sim-framework/
6262
gpu-app-collection/
6363

64+
setup

0 commit comments

Comments
 (0)