Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a dockerfile for ease-of-use. #19

Merged
merged 1 commit into from
Nov 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Docker Instructions
## Using the provided `dockerfile`, simply run the following commands.
```bash
docker build . -t loops
docker run -it loops:latest /bin/bash
```

## Alternatively pull directly from [hub.docker.com](https://hub.docker.com/repository/docker/neoblizz/loops).

```bash
docker pull neoblizz/loops:v0.1
```

## Once within the docker...
```bash
cd loops/build
bin/loops.spmv.merge_path -m ../datasets/chesapeake/chesapeake.mtx
```
19 changes: 19 additions & 0 deletions docker/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Or directly get from docker:
# docker pull neoblizz/loops:v0.1
FROM nvidia/cuda:11.7.0-devel-ubuntu20.04

# Install dependencies
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y wget vim git gcc g++

RUN wget https://github.com/Kitware/CMake/releases/download/v3.25.0/cmake-3.25.0-linux-x86_64.sh
RUN chmod +x ./cmake-3.25.0-linux-x86_64.sh
RUN mkdir /opt/cmake-3.25.0/
RUN ./cmake-3.25.0-linux-x86_64.sh --skip-license --prefix=/opt/cmake-3.25.0
RUN ln -s /opt/cmake-3.25.0/bin/* /usr/local/bin/


# Build and install
RUN git clone https://github.com/gunrock/loops.git
RUN cd loops && mkdir build && cd build && cmake .. && make -j$(nproc)