-
Notifications
You must be signed in to change notification settings - Fork 1
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
Qianxiang Ma
committed
Jul 29, 2022
1 parent
d7198a2
commit 9ceb12a
Showing
2 changed files
with
26 additions
and
6 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 |
---|---|---|
@@ -1,9 +1,28 @@ | ||
FROM intel/oneapi-basekit | ||
FROM ubuntu | ||
|
||
RUN apt update &&\ | ||
DEBIAN_FRONTEND=noninteractive apt install -y wget gnupg git gcc g++ make cmake libopenmpi-dev python3 python3-matplotlib &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ | ||
| gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null | ||
|
||
RUN echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list | ||
|
||
RUN apt update &&\ | ||
DEBIAN_FRONTEND=noninteractive apt install -y intel-oneapi-mkl-devel &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV MKLROOT /opt/intel/oneapi/mkl/latest | ||
ENV CMAKE_PREFIX_PATH /opt/intel/oneapi/mkl/latest | ||
|
||
RUN apt update && apt upgrade -y && rm -rf /var/lib/apt/lists/* | ||
RUN cd /root &&\ | ||
git clone https://github.com/rioyokotalab/nbd.git &&\ | ||
mkdir ./nbd/build &&\ | ||
cd ./nbd/build &&\ | ||
cmake .. &&\ | ||
cmake --build . | ||
|
||
ENV OMPI_ALLOW_RUN_AS_ROOT 1 | ||
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM 1 | ||
ENV OMPI_MCA_btl_vader_single_copy_mechanism none | ||
ENV LD_LIBRARY_PATH /opt/intel/oneapi/mkl/latest/lib/intel64 |
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