Skip to content

Commit

Permalink
Use bash instead of sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Jan 23, 2024
1 parent 62f8293 commit e860103
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:22.04

SHELL ["/bin/bash", "-c"]

WORKDIR /accel-sim
ADD . /accel-sim

Expand All @@ -19,12 +21,7 @@ RUN apt-get update \

RUN export PATH=$CUDA_INSTALL_PATH/bin:$PATH \
&& git clone https://github.com/accel-sim/gpu-app-collection \
&& . ./gpu-app-collection/src/setup_environment \
# below 2 export shoudld be set up by setup_environment
# but it does not work in sh (used in docker build)
# manually set
&& export GPUAPPS_ROOT=/accel-sim/gpu-app-collection/src/../ \
&& export BINDIR=/accel-sim/gpu-app-collection/src/..//bin/11.7 \
&& make -j -C ./gpu-app-collection/src rodinia_2.0-ft \
&& source ./gpu-app-collection/src/setup_environment \
&& make -j -C ./gpu-app-collection/src rodinia_2.0-ft
&& make -j -C ./gpu-app-collection/src GPU_Microbenchmark \
&& make -j -C ./gpu-app-collection/src data
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# Dockerfile
# Dockerfile for Accel-Sim

This repo hosts the Dockerfiles used in regression tests for Accel-Sim and GPGPU-Sim.
The image can be pull from Docker Hub [tgrogers/accel-sim_regress](https://hub.docker.com/r/tgrogers/accel-sim_regress)
```
docker pull tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
```

To run tests:
```
# in accel-sim-framework
docker run tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7 /bin/bash short-tests.sh
```

0 comments on commit e860103

Please sign in to comment.