-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GENIE updates, including GENIE Reweight #79
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ed8f2d3
updates to GENIE for reweight/updated container
wesketchum 340a75e
Merge branch 'main' of https://github.com/LDMX-Software/docker
wesketchum a8eda4b
missed a line on the merge conflict
wesketchum 274fbe1
updates for GENIE with pythia8 and reweight
wesketchum fff90a3
Merge branch 'main' of https://github.com/wesketchum/ldmxsw_docker
wesketchum 8fd6c80
Merge branch 'main' of https://github.com/LDMX-Software/docker
wesketchum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -146,6 +146,39 @@ RUN mkdir src && \ | |
echo "${__prefix}/pythia${PYTHIA_MAJOR_VERSION}/" > /etc/ld.so.conf.d/pythia${PYTHIA_MAJOR_VERSION}.conf | ||
|
||
SHELL ["/bin/sh", "-c"] | ||
############################################################################### | ||
# LHAPDF | ||
# | ||
# Needed for GENIE | ||
# | ||
# - We disable the python subpackage because it is based on Python2 whose | ||
# executable has been removed from Ubuntu 22.04. | ||
############################################################################### | ||
LABEL lhapdf.version="6.5.4" | ||
RUN mkdir src &&\ | ||
${__wget} https://lhapdf.hepforge.org/downloads/?f=LHAPDF-6.5.4.tar.gz |\ | ||
${__untar} &&\ | ||
cd src &&\ | ||
./configure --disable-python --prefix=${__prefix} &&\ | ||
make -j$NPROC install &&\ | ||
cd ../ &&\ | ||
rm -rf src | ||
|
||
############################################################################### | ||
# PYTHIA8 | ||
############################################################################### | ||
RUN install-ubuntu-packages \ | ||
rsync | ||
|
||
LABEL pythia.version="8.310" | ||
RUN mkdir src && \ | ||
${__wget} https://pythia.org/download/pythia83/pythia8310.tgz | ${__untar} &&\ | ||
cd src &&\ | ||
./configure --with-lhapdf6 --prefix=${__prefix} &&\ | ||
make -j$NPROC install &&\ | ||
cd ../ &&\ | ||
rm -rf src | ||
|
||
############################################################################### | ||
# CERN's ROOT | ||
# Needed for GENIE and serialization within the Framework | ||
|
@@ -214,6 +247,7 @@ RUN mkdir src &&\ | |
-Dxrootd=OFF \ | ||
-Dgsl_shared=ON \ | ||
-Dmathmore=ON \ | ||
-Dpythia8=ON \ | ||
-Dpythia6=ON \ | ||
-DPYTHIA6_LIBRARY=${__prefix}/pythia6/libPythia6.so \ | ||
-B build \ | ||
|
@@ -294,25 +328,6 @@ RUN mkdir src &&\ | |
&&\ | ||
rm -rf src | ||
|
||
############################################################################### | ||
# LHAPDF | ||
# | ||
# Needed for GENIE | ||
# | ||
# - We disable the python subpackage because it is based on Python2 whose | ||
# executable has been removed from Ubuntu 22.04. | ||
############################################################################### | ||
ENV LHAPDF_VERSION="6.5.3" | ||
LABEL lhapdf.version=${LHAPDF_VERSION} | ||
RUN mkdir src &&\ | ||
${__wget} https://lhapdf.hepforge.org/downloads/?f=LHAPDF-${LHAPDF_VERSION}.tar.gz |\ | ||
${__untar} &&\ | ||
cd src &&\ | ||
./configure --disable-python --prefix=${__prefix} &&\ | ||
make -j$NPROC install &&\ | ||
cd ../ &&\ | ||
rm -rf src | ||
|
||
############################################################################### | ||
# GENIE | ||
# | ||
|
@@ -344,9 +359,8 @@ RUN install-ubuntu-packages \ | |
liblog4cpp5-dev \ | ||
libtool | ||
|
||
|
||
ENV GENIE_VERSION=3.02.00 | ||
#ENV GENIE_REWEIGHT_VERSION=1_02_00 | ||
LABEL genie.version=3.04.00 | ||
ENV GENIE_VERSION=3_04_00 | ||
ENV GENIE=/usr/local/src/GENIE/Generator | ||
#ENV GENIE_DOT_VERSION="$(sed 's,_,\.,g' <<< $GENIE_VERSION )" | ||
LABEL genie.version=${GENIE_VERSION} | ||
|
@@ -363,13 +377,24 @@ RUN mkdir -p ${GENIE} &&\ | |
--disable-lhapdf5 \ | ||
--enable-gfortran \ | ||
--with-gfortran-lib=/usr/x86_64-linux-gnu/ \ | ||
--disable-pythia8 \ | ||
--with-pythia6-lib=${__prefix}/pythia6 \ | ||
--enable-pythia8 \ | ||
--with-pythia8-lib=${__prefix}/lib \ | ||
--enable-test \ | ||
&& \ | ||
make -j$NPROC && \ | ||
make -j$NPROC install | ||
|
||
#Unfortunately ... need to use the master branch of GENIE reweight... | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed in the SW Dev meeting, we should change this to be a specific commit sha and if possible a specific human-readable tag made by the GENIE folks. Then (whichever path occurs), we should update something like
|
||
#ENV GENIE_REWEIGHT_VERSION=1_02_02 | ||
ENV GENIE_REWEIGHT=/usr/local/src/GENIE/Reweight | ||
RUN mkdir -p ${GENIE_REWEIGHT} &&\ | ||
#${__wget} https://github.com/GENIE-MC/Reweight/archive/refs/tags/R-${GENIE_REWEIGHT_VERSION}.tar.gz |\ | ||
${__wget} https://github.com/GENIE-MC/Reweight/tarball/master |\ | ||
${__untar_to} ${GENIE_REWEIGHT} &&\ | ||
cd ${GENIE_REWEIGHT} &&\ | ||
make -j$NPROC && \ | ||
make -j$NPROC install | ||
|
||
SHELL ["/bin/sh", "-c"] | ||
|
||
############################################################################### | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does Pythia8 require
rsync
? Does it download stuff from servers during running?