-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] recovered from dockerfile after Gacrux crash
- Loading branch information
Showing
12 changed files
with
463 additions
and
53 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,42 @@ | ||
ARG NVIDIA_VERSION=11.4.3 | ||
|
||
FROM nvidia/cuda:${NVIDIA_VERSION}-devel-ubuntu20.04 | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" | ||
RUN apt-get update -y && \ | ||
apt-get -y install \ | ||
tzdata \ | ||
build-essential \ | ||
pkg-config \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
lcov \ | ||
fontconfig \ | ||
libfreetype-dev \ | ||
libexpat1-dev \ | ||
libcfitsio-dev \ | ||
libhdf5-dev \ | ||
clang \ | ||
libfontconfig-dev \ | ||
&& apt-get clean all \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG RUST_VERSION=1.72 | ||
ARG TARGET_CPU=x86-64 | ||
# example: 70 | ||
ARG CUDA_COMPUTE | ||
|
||
# Get Rust | ||
RUN mkdir -m755 /opt/rust /opt/cargo | ||
ENV RUSTUP_HOME=/opt/rust CARGO_HOME=/opt/cargo PATH=/opt/cargo/bin:$PATH | ||
# set minimal rust version here to use a newer stable version | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain=$RUST_VERSION | ||
|
||
ADD . /mwa_hyperdrive | ||
WORKDIR /mwa_hyperdrive | ||
ENV CXX=/usr/bin/g++ | ||
ENV CARGO_BUILD_RUSTFLAGS="-C target-cpu=${TARGET_CPU}" | ||
RUN [ -z "$CUDA_COMPUTE" ] || export HYPERDRIVE_CUDA_COMPUTE=${CUDA_COMPUTE}; \ | ||
cargo install --path . --no-default-features --features=cuda,plotting --locked \ | ||
&& cargo clean |
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
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
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
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
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,20 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": ".." | ||
}, | ||
{ | ||
"path": "../../../../../data/dev/1226233968" | ||
}, | ||
{ | ||
"path": "../../../../../data/dev/1090701368" | ||
}, | ||
{ | ||
"path": "../../../../../data/dev/1094090416" | ||
}, | ||
{ | ||
"path": "../../../../../data/dev/1096811152" | ||
} | ||
], | ||
"settings": {} | ||
} |
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
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
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
Oops, something went wrong.