Skip to content

Commit 69ce969

Browse files
authored
Merge branch 'dev' into cuda_api_tracer
2 parents ec9c6d2 + 9f02a82 commit 69ce969

File tree

17 files changed

+128
-360
lines changed

17 files changed

+128
-360
lines changed

.github/workflows/long-tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ jobs:
3131
git checkout cluster-ubuntu
3232
- name: Build Accel-Sim
3333
run: |
34-
source ./env-setup/11.7.0_env_setup.sh
34+
source ./env-setup/12.4_env_setup.sh
3535
rm -rf ./gpu-simulator/gpgpu-sim
3636
source ./gpu-simulator/setup_environment.sh
3737
make clean -C gpu-simulator
3838
srun -c20 make -j20 -C gpu-simulator
3939
- name: Run SASS
4040
run: |
41-
source ./env-setup/11.7.0_env_setup.sh
41+
source ./env-setup/12.4_env_setup.sh
4242
source ./gpu-simulator/setup_environment.sh
4343
./util/job_launching/run_simulations.py -B rodinia_2.0-ft,GPU_Microbenchmark -C QV100-SASS -T ~/../common/accel-sim/traces/volta-tesla-v100/latest/ -N sass-short-$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT
4444
./util/job_launching/run_simulations.py -B rodinia_2.0-ft,GPU_Microbenchmark -C RTX2060-SASS -T ~/../common/accel-sim/traces/turing-rtx2060/latest/ -N sass-short-$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT
4545
./util/job_launching/run_simulations.py -B rodinia_2.0-ft,GPU_Microbenchmark -C RTX3070-SASS -T ~/../common/accel-sim/traces/ampere-rtx3070/latest/ -N sass-short-$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT
4646
./util/job_launching/monitor_func_test.py -v -s stats-per-app-sass.csv -N sass-short-$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT
4747
- name: Archive Stats
4848
run: |
49-
source ./env-setup/11.7.0_env_setup.sh
49+
source ./env-setup/12.4_env_setup.sh
5050
rm -rf ./statistics-archive
5151
git clone git@github.com:accel-sim/statistics-archive.git
5252
# either create a new branch or check it out if it already exists
@@ -75,7 +75,7 @@ jobs:
7575
git -C ./statistics-archive push -u origin git_${GITHUB_REF}"_"$GITHUB_RUN_NUMBER"_"$GITHUB_RUN_ATTEMPT
7676
- name: Correlate Ubench
7777
run: |
78-
source ./env-setup/11.7.0_env_setup.sh
78+
source ./env-setup/12.4_env_setup.sh
7979
./util/hw_stats/get_hw_data.sh > /dev/null 2>&1
8080
rm -rf ./util/plotting/correl-html/
8181
./util/plotting/plot-correlation.py -c ./v100-ubench-sass-latest2.csv -H ./hw_run/volta-tesla-v100/11.2/ | tee v100-ubench-correl.txt
@@ -107,14 +107,14 @@ jobs:
107107
git checkout cluster-ubuntu
108108
- name: Build Accel-Sim
109109
run: |
110-
source ./env-setup/11.7.0_env_setup.sh
110+
source ./env-setup/12.4_env_setup.sh
111111
rm -rf ./gpu-simulator/gpgpu-sim
112112
source ./gpu-simulator/setup_environment.sh
113113
make clean -C gpu-simulator
114114
srun -c20 make -j20 -C gpu-simulator
115115
- name: Run PTX
116116
run: |
117-
source ./env-setup/11.7.0_env_setup.sh
117+
source ./env-setup/12.4_env_setup.sh
118118
source ./gpu-simulator/setup_environment.sh
119119
120120
rm -rf ./gpu-app-collection
@@ -141,14 +141,14 @@ jobs:
141141
git checkout cluster-ubuntu
142142
- name: Build Accel-Sim
143143
run: |
144-
source ./env-setup/11.7.0_env_setup.sh
144+
source ./env-setup/12.4_env_setup.sh
145145
rm -rf ./gpu-simulator/gpgpu-sim
146146
source ./gpu-simulator/setup_environment.sh
147147
make clean -C gpu-simulator
148148
make -j -C gpu-simulator
149149
- name: test-prebuilt-traces
150150
run: |
151-
source ./env-setup/11.7.0_env_setup.sh
151+
source ./env-setup/12.4_env_setup.sh
152152
source ./gpu-simulator/setup_environment.sh
153153
./get-accel-sim-traces.py -a tesla-v100/rodinia_2.0-ft
154154
cd hw_run; tar -xzvf rodinia_2.0-ft.tgz; cd -
@@ -158,32 +158,32 @@ jobs:
158158
rm -rf sim_run_11.0
159159
- name: Build Tracer
160160
run: |
161-
source ./env-setup/11.7.0_env_setup.sh
161+
source ./env-setup/12.4_env_setup.sh
162162
./util/tracer_nvbit/install_nvbit.sh
163163
make clean -C ./util/tracer_nvbit/
164164
make -C ./util/tracer_nvbit/
165165
- name: rodinia_2.0-ft-build
166166
run: |
167-
source ./env-setup/11.7.0_env_setup.sh
167+
source ./env-setup/12.4_env_setup.sh
168168
rm -rf ./gpu-app-collection/
169169
git clone git@github.com:accel-sim/gpu-app-collection.git
170170
source ./gpu-app-collection/src/setup_environment
171171
ln -s /home/tgrogers-raid/a/common/data_dirs ./gpu-app-collection/
172172
make -C ./gpu-app-collection/src rodinia_2.0-ft
173173
- name: generate-rodinia_2.0-ft-traces
174174
run: |
175-
source ./env-setup/11.7.0_env_setup.sh
175+
source ./env-setup/12.4_env_setup.sh
176176
source ./gpu-app-collection/src/setup_environment
177177
rm -rf ./hw_run/
178178
./util/tracer_nvbit/run_hw_trace.py -B rodinia_2.0-ft -D 7
179179
- name: generate-rodinia_2.0-ft-hw_stats
180180
run: |
181-
source ./env-setup/11.7.0_env_setup.sh
181+
source ./env-setup/12.4_env_setup.sh
182182
source ./gpu-app-collection/src/setup_environment
183183
./util/hw_stats/run_hw.py -B rodinia_2.0-ft -D 7
184184
- name: test-new-traces
185185
run: |
186-
source ./env-setup/11.7.0_env_setup.sh
186+
source ./env-setup/12.4_env_setup.sh
187187
source ./gpu-simulator/setup_environment.sh
188188
./util/job_launching/run_simulations.py -B rodinia_2.0-ft -C QV100-SASS -T ./hw_run/traces/device-7/ -N rodinia_2.0-ft-$$
189-
./util/job_launching/monitor_func_test.py -I -v -s rodinia-stats-per-app.csv -N rodinia_2.0-ft-$$
189+
./util/job_launching/monitor_func_test.py -I -v -s rodinia-stats-per-app.csv -N rodinia_2.0-ft-$$

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

Jenkinsfile

Lines changed: 0 additions & 110 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Accel-Sim: An Extensible Simulation Framework for Validated GPU Modeling,
1010
in 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA)
1111
```
1212

13-
This repository also includes AccelWattch: A Power Modeling Framework for Modern GPUs. The [MICRO 2021 paper](http://paragon.cs.northwestern.edu/papers/2021-MICRO-AccelWattch-Kandiah.pdf) introduces AccelWattch. Please look at our [AccelWattch MICRO'21 Artifact Manual](https://github.com/accel-sim/accel-sim-framework/blob/release-accelwattch/AccelWattch.md) for detailed information on various AccelWattch components. For information on just running AccelWattch, please look at the [AccelWattch Overview](https://github.com/accel-sim/accel-sim-framework/blob/release-accelwattch/README.md#accelwattch-overview) section in this read-me.
13+
This repository also includes AccelWattch: A Power Modeling Framework for Modern GPUs. The [MICRO 2021 paper](http://paragon.cs.northwestern.edu/papers/2021-MICRO-AccelWattch-Kandiah.pdf) introduces AccelWattch. Please look at our [AccelWattch MICRO'21 Artifact Manual](https://github.com/accel-sim/accel-sim-framework/blob/release/AccelWattch.md) for detailed information on various AccelWattch components. For information on just running AccelWattch, please look at the [AccelWattch Overview](https://github.com/accel-sim/accel-sim-framework/blob/release/README.md#accelwattch-overview) section in this read-me.
1414
If you use any component of AccelWattch, please cite:
1515

1616
```
@@ -23,14 +23,14 @@ in 2021 IEEE/ACM International Symposium on Microarchitecture (MICRO)
2323
## Dependencies
2424

2525
This package is meant to be run on a modern linux distro.
26-
A docker image that works with this repo can be found [here](https://hub.docker.com/repository/docker/accelsim/ubuntu-18.04_cuda-11).
26+
A docker image that works with this repo can be found [here](ghcr.io/accel-sim/accel-sim-framework:ubuntu-24.04-cuda-12.8).
2727
There is nothing special here, just Ubuntu 18.04 with the following commands
2828
run:
2929

3030
```bash
3131
sudo apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
3232
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \
33-
libxml2-dev vim python-setuptools python-dev build-essential python-pip
33+
libxml2-dev vim python-setuptools build-essential python3-pip
3434

3535
pip3 install pyyaml plotly psutil
3636
wget http://developer.download.nvidia.com/compute/cuda/11.0.1/local_installers/cuda_11.0.1_450.36.06_linux.run
@@ -55,7 +55,7 @@ the apps in from this collection as well as just on your own, with your own apps
5555

5656
[GPU App Collection](https://github.com/accel-sim/gpu-app-collection)
5757

58-
AccelWattch microbenchmarks and AccelWattch validation set benchmarks are also included. For more information on these benchmarks, please look at our [MICRO 2021 paper](http://paragon.cs.northwestern.edu/papers/2021-MICRO-AccelWattch-Kandiah.pdf) and [AccelWattch MICRO'21 Artifact Manual](https://github.com/accel-sim/accel-sim-framework/blob/release-accelwattch/AccelWattch.md).
58+
AccelWattch microbenchmarks and AccelWattch validation set benchmarks are also included. For more information on these benchmarks, please look at our [MICRO 2021 paper](http://paragon.cs.northwestern.edu/papers/2021-MICRO-AccelWattch-Kandiah.pdf) and [AccelWattch MICRO'21 Artifact Manual](https://github.com/accel-sim/accel-sim-framework/blob/release/AccelWattch.md).
5959

6060
## Accel-Sim Components
6161

@@ -249,7 +249,7 @@ apt-get install gdb
249249
```
250250

251251
Don't want to install docker?
252-
Just use a linux ditro with the packages detailed in dependencies, set
252+
Just use a linux distro with the packages detailed in dependencies, set
253253
CUDA\_INSTALL\_PATH, the run ./travis.sh.
254254
255255
@@ -275,7 +275,7 @@ Note that *AccelWattch HW* and *AccelWattch HYBRID* configurations require hardw
275275
./util/job_launching/run_simulations.py -B rodinia_2.0-ft -C GV100-Accelwattch_PTX_SIM -N myTest
276276
```
277277
278-
4. **Hardware Power and Performance Profiler**: The AccelWattch hardware profiler scripts are located at `./util/accelwattch/accelwattch_hw_profiler/` in this repository. For more information on how to use them, please look at [this](https://github.com/accel-sim/accel-sim-framework/blob/release-accelwattch/AccelWattch.md#hardware-profiling-for-accelwattch-validation) section in our MICRO'21 Artifact Manual.
278+
4. **Hardware Power and Performance Profiler**: The AccelWattch hardware profiler scripts are located at `./util/accelwattch/accelwattch_hw_profiler/` in this repository. For more information on how to use them, please look at [this](https://github.com/accel-sim/accel-sim-framework/blob/release/AccelWattch.md#hardware-profiling-for-accelwattch-validation) section in our MICRO'21 Artifact Manual.
279279

280280
5. **Microbenchmarks and Quadratic Optimization Solver**: The source code for the microbenchmarks used for AccelWattch dynamic power modeling are located [here](https://github.com/accel-sim/gpu-app-collection/tree/release-accelwattch/src/cuda/accelwattch-ubench) and can be compiled by following the README [here](https://github.com/accel-sim/gpu-app-collection/tree/release-accelwattch). The Quadratic Optimization Solver MATLAB script is located at `./util/accelwattch/quadprog_solver.m`.
281281

gpu-simulator/format-code.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This bash script formats GPGPU-Sim using clang-format
22
THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"
3-
clang-format -i ${THIS_DIR}/trace-driven/*.h
4-
clang-format -i ${THIS_DIR}/trace-driven/*.cc
5-
clang-format -i ${THIS_DIR}/ISA_Def/*.h
6-
clang-format -i ${THIS_DIR}/trace-parser/*.h
7-
clang-format -i ${THIS_DIR}/trace-parser/*.cc
3+
clang-format -i ${THIS_DIR}/trace-driven/*.h --style=file:${THIS_DIR}/.clang-format
4+
clang-format -i ${THIS_DIR}/trace-driven/*.cc --style=file:${THIS_DIR}/.clang-format
5+
clang-format -i ${THIS_DIR}/ISA_Def/*.h --style=file:${THIS_DIR}/.clang-format
6+
clang-format -i ${THIS_DIR}/trace-parser/*.h --style=file:${THIS_DIR}/.clang-format
7+
clang-format -i ${THIS_DIR}/trace-parser/*.cc --style=file:${THIS_DIR}/.clang-format

gpu-simulator/setup_environment.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2020 Timothy Rogers, Purdue University
2+
# Copyright (c) 2025 Timothy Rogers, Purdue University
33
# All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without
@@ -34,6 +34,18 @@ export ACCELSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"
3434
export GPGPUSIM_REPO="${GPGPUSIM_REPO:=https://github.com/accel-sim/gpgpu-sim_distribution.git}"
3535
export GPGPUSIM_BRANCH="${GPGPUSIM_BRANCH:=dev}"
3636

37+
# Help the user out by setting the default CUDA_INSTALL_PATH, if it is not already set
38+
if [ -z "$CUDA_INSTALL_PATH" ]; then
39+
DEFAULT_CUDA_PATH="/usr/local/cuda"
40+
if [ ! -d "$DEFAULT_CUDA_PATH" ]; then
41+
echo "Error: Default CUDA installation directory ($DEFAULT_CUDA_PATH) does not exist."
42+
echo "Please set CUDA_INSTALL_PATH to your CUDA installation directory."
43+
return 1
44+
fi
45+
echo "CUDA_INSTALL_PATH is not set, setting it to $DEFAULT_CUDA_PATH"
46+
export CUDA_INSTALL_PATH=$DEFAULT_CUDA_PATH
47+
fi
48+
3749
if [ $# = '1' ] ;
3850
then
3951
export ACCELSIM_CONFIG=$1

gpu-simulator/trace-parser/trace_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// developed by Mahmoud Khairy, Purdue Univ
22

33
#include <assert.h>
4+
#include <stdint.h>
45
#include <stdio.h>
56
#include <stdlib.h>
67
#include <string>
78
#include <vector>
8-
#include <stdint.h>
99
#ifndef TRACE_PARSER_H
1010
#define TRACE_PARSER_H
1111

0 commit comments

Comments
 (0)