Skip to content

Commit

Permalink
add CUDA 10.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jun 7, 2023
1 parent de46969 commit 7769b92
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
branches: [ "master" ]

jobs:
build-amd64_cuda10-2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build the Docker image
run: docker build . --file amd64_cuda10.2.Dockerfile --tag c3sr/comm_scope:$(date +%s)
build-amd64_cuda11-5-1:
runs-on: ubuntu-latest
steps:
Expand Down
29 changes: 29 additions & 0 deletions amd64_cuda10.2.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM nvidia/cuda:10.2-devel-ubuntu18.04

# Install NUMA
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests \
libnuma-dev \
wget \
&& rm -rf /var/lib/apt/lists/*

# ubuntu 20.04 has cmake 3.16, too low for comm_scope
RUN mkdir -p /opt
WORKDIR /opt
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz
RUN tar -xf cmake-3.25.1-linux-x86_64.tar.gz

# Add source
COPY . /opt/comm_scope
WORKDIR /opt/comm_scope

# Build
RUN mkdir -p build \
&& cd build \
&& /opt/cmake-3.25.1-linux-x86_64/bin/cmake .. \
-DCMAKE_CUDA_ARCHITECTURES=70 \
-DSCOPE_USE_NUMA=ON \
-DSCOPE_USE_CUDA=ON \
-DSCOPE_USE_NVTX=ON \
&& make

0 comments on commit 7769b92

Please sign in to comment.