Skip to content

Commit

Permalink
enable CUDA_MULTIARCH for build test
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Nov 27, 2023
1 parent a05dc67 commit 3468634
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docker/focal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM koide3/gtsam_docker:focal_cuda11.2

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfmt-dev libspdlog-dev libopencv-dev \
libfmt-dev libspdlog-dev libopencv-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -29,6 +29,7 @@ RUN make -j$(nproc)
WORKDIR /root/glim/build
RUN cmake .. \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DBUILD_WITH_VIEWER=ON \
-DBUILD_WITH_MARCH_NATIVE=OFF \
-DCMAKE_BUILD_TYPE=Release
Expand Down
3 changes: 2 additions & 1 deletion docker/focal_llvm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM koide3/gtsam_docker:focal_cuda11.2

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfmt-dev libspdlog-dev libopencv-dev \
libfmt-dev libspdlog-dev libopencv-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -31,6 +31,7 @@ RUN make -j$(nproc)
WORKDIR /root/glim/build
RUN CC=clang CXX=clang++ cmake .. \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DBUILD_WITH_VIEWER=ON \
-DBUILD_WITH_MARCH_NATIVE=OFF \
-DCMAKE_BUILD_TYPE=Release
Expand Down
3 changes: 2 additions & 1 deletion docker/jammy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM koide3/gtsam_docker:jammy_cuda11.8

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfmt-dev libspdlog-dev libopencv-dev \
libfmt-dev libspdlog-dev libopencv-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -29,6 +29,7 @@ RUN make -j$(nproc)
WORKDIR /root/glim/build
RUN cmake .. \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DBUILD_WITH_VIEWER=ON \
-DBUILD_WITH_MARCH_NATIVE=OFF \
-DCMAKE_BUILD_TYPE=Release
Expand Down
3 changes: 2 additions & 1 deletion docker/jammy_llvm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM koide3/gtsam_docker:jammy_cuda11.8

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfmt-dev libspdlog-dev libopencv-dev \
libfmt-dev libspdlog-dev libopencv-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -34,6 +34,7 @@ RUN sed -i '496{s/^/\/\//}' /usr/lib/llvm-14/lib/clang/14.0.0/include/omp.h
WORKDIR /root/glim/build
RUN CC=clang CXX=clang++ cmake .. \
-DBUILD_WITH_CUDA=ON \
-DBUILD_WITH_CUDA_MULTIARCH=ON \
-DBUILD_WITH_VIEWER=ON \
-DBUILD_WITH_MARCH_NATIVE=OFF \
-DCMAKE_BUILD_TYPE=Release
Expand Down

0 comments on commit 3468634

Please sign in to comment.