-
Notifications
You must be signed in to change notification settings - Fork 40
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
Showing
2 changed files
with
61 additions
and
1 deletion.
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
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,54 @@ | ||
|
||
FROM cernml4reco/djcbase:py3 | ||
|
||
|
||
|
||
################################################################################ | ||
# Tensorflow | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
pip3 --no-cache-dir install tensorflow-gpu==2.2.0-rc1 | ||
|
||
|
||
#2.2.0-rc1 | ||
RUN cd /usr/local/lib/python3.6/dist-packages/tensorflow/include/third_party && \ | ||
mkdir gpus && \ | ||
cd gpus && \ | ||
ln -s /usr/local/cuda cuda | ||
|
||
|
||
|
||
################################################################################ | ||
# the actual DeepJetCore. Make sure this gets built every time | ||
|
||
ARG BUILD_DATE | ||
LABEL org.label-schema.build-date=$BUILD_DATE | ||
|
||
ENV DEEPJETCORE /usr/share/DJC/DeepJetCore | ||
|
||
RUN ldconfig && \ | ||
cd /usr/share && \ | ||
mkdir DJC && \ | ||
cd DJC && \ | ||
git clone https://github.com/DL4Jets/DeepJetCore && \ | ||
cd DeepJetCore && \ | ||
# git checkout 2.2_tf1.15 &&\ | ||
source docker_env.sh && \ | ||
cd compiled && \ | ||
make -j4 | ||
|
||
|
||
ENV PATH="/usr/share/DJC/DeepJetCore/bin:${PATH}" | ||
|
||
#/usr/local/lib is for root | ||
ENV PYTHONPATH="/usr/share/DJC/DeepJetCore/../:${PYTHONPATH}" | ||
ENV LD_LIBRARY_PATH="/usr/share/DJC/DeepJetCore/compiled:${LD_LIBRARY_PATH}" | ||
|
||
|
||
# helpers for ragged and cuda compilation | ||
|
||
|
||
|
||
# The fix for TensorFlow | ||
|
||
|