-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fd366fe
Showing
4 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Docker | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: docker.io | ||
|
||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USER }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||
with: | ||
images: tgrogers/accel-sim_regress | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:22.04 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
WORKDIR /accel-sim | ||
ADD . /accel-sim | ||
|
||
ENV CUDA_INSTALL_PATH /usr/local/cuda-11.7 | ||
ENV PTXAS_CUDA_INSTALL_PATH /usr/local/cuda-11.7 | ||
ENV GPUAPPS_ROOT /accel-sim/gpu-app-collection | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \ | ||
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \ | ||
libxml2-dev vim python-setuptools python3-pip \ | ||
&& apt-get clean \ | ||
&& pip3 install pyyaml plotly psutil \ | ||
&& wget https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_515.43.04_linux.run \ | ||
&& sh cuda_11.7.0_515.43.04_linux.run --silent --toolkit \ | ||
&& rm cuda_11.7.0_515.43.04_linux.run \ | ||
&& rm -rf /usr/local/cuda-11.7/nsight-compute-2022.2.0 \ | ||
&& rm -rf /usr/local/cuda-11.7/nsight-systems-2022.1.3 | ||
|
||
RUN export PATH=$CUDA_INSTALL_PATH/bin:$PATH \ | ||
&& git clone https://github.com/accel-sim/gpu-app-collection \ | ||
&& 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 \ | ||
&& rm gpucomputingsdk_4.2.9_linux.run \ | ||
&& rm -rf 4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2024, Accel-Sim | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 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 | ||
``` |