MinervaExpt / MAT-MINERvA

MINERvA-specific plugins to the MAT like FluxReweighter, MuonFunctions, and our CCInclusiveCuts.
MIT License
1 stars 1 forks source link

non-Fermilab install instructions diverge #4

Open rikgran opened 3 years ago

rikgran commented 3 years ago

I did a non-Fermilab install on Duluth SL7 machines, and the steps diverged in ways that were not simply replacing Fermilab specific things with another. The current instructions are a little stale ? Here is my prescription. Literally these are instructions I wrote for Brandon, not for this issue tracker.

First point: on our SL7 system we have our own local build of ROOT6 with most usual options and python3. cmake3 is installed alongside cmake (v2). python3 is installed alongside python (v2).

Will need to get ROOT6 in your path everytime you login. And need it also now to do the build. Could put it in your regular login or a link to it in the working directory you are about to build. I do it by hand still.

[Insert what ${ROOTSYS} really is on the local machine.] source ${ROOTSYS}/bin/thisroot.sh

The following to create a working directory, to put everything in myworkdir-20211006 or MatAna-20211006 or whatever you like.

mkdir MatAna-20211006 cd MatAna-20211006

Then download the latest from git

git clone https://github.com/MinervaExpt/MAT-MINERvA.git git clone https://github.com/MinervaExpt/MAT.git git clone https://github.com/MinervaExpt/UnfoldUtils.git

Make links to 2GB of centralized flux and reweight files. I had to get them by logging into Fermilab once, finding where they were, and copying the set to our local computer. Is there guildance for someone on this step ? It was obvious to me where to find these.

mkdir -p opt/etc cd opt/etc

ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles/MATFluxAndReweightFiles ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles/MParamFiles

cd - (or cd ../../)

edit MAT-MINERvA/bootstrap/CMakeLists.txt Duplicate then Comment out the set(FLUX_FILE_DIR … And in the duplicate version, point to ../etc/CentralizedFluxAndReweightFiles for a relocatable path or use an absolute path like the original line did.

mkdir -p opt/build cd opt/build cmake3 ../../MAT-MINERvA/bootstrap -DCMAKE_INSTALL_PREFIX=pwd/.. -DCMAKE_BUILD_TYPE=Release make install

cd ../../

Now your own code.

hschellman commented 3 years ago

I put in instruction on how to get cvmfs which solves a lot of problems. They are in the personal area on the wiki.

On 10/29/21 12:00 PM, rikgran wrote:

[This email originated from outside of OSU. Use caution with links and attachments.]

I did a non-Fermilab install on Duluth SL7 machines, and the steps diverged in ways that were not simply replacing Fermilab specific things with another. The current instructions are a little stale ? Here is my prescription. Literally these are instructions I wrote for Brandon, not for this issue tracker.

First point: on our SL7 system we have our own local build of ROOT6 with most usual options and python3. cmake3 is installed alongside cmake (v2). python3 is installed alongside python (v2).

Will need to get ROOT6 in your path everytime you login. And need it also now to do the build. Could put it in your regular login or a link to it in the working directory you are about to build. I do it by hand still.

[Insert what ${ROOTSYS} really is on the local machine.] source ${ROOTSYS}/bin/thisroot.sh

The following to create a working directory, to put everything in myworkdir-20211006 or MatAna-20211006 or whatever you like.

mkdir MatAna-20211006 cd MatAna-20211006

Then download the latest from git

git clone https://github.com/MinervaExpt/MAT-MINERvA.githttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMinervaExpt%2FMAT-MINERvA.git&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117496449%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=qBzstf%2BLgyNpL6bj7C39aIRnAGxm3iNcfls1rPw%2FEPY%3D&reserved=0 git clone https://github.com/MinervaExpt/MAT.githttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMinervaExpt%2FMAT.git&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117506404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BwnRtOhSM7EdrgZ1USTzZbOBDDapyCRqpncl36XyAKc%3D&reserved=0 git clone https://github.com/MinervaExpt/UnfoldUtils.githttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMinervaExpt%2FUnfoldUtils.git&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117516362%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=o8Bf%2BYC3ORau71xoAlCyPj6eDF4qeEi2oUr42CqCp6k%3D&reserved=0

Make links to 2GB of centralized flux and reweight files. I had to get them by logging into Fermilab once, finding where they were, and copying the set to our local computer. Is there guildance for someone on this step ? It was obvious to me where to find these.

mkdir -p opt/etc cd opt/etc

ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles/MATFluxAndReweightFiles ln -s /datalocal/minerva/CentralizedFluxAndReweightFiles/MParamFiles

cd - (or cd ../../)

edit MAT-MINERvA/bootstrap/CMakeLists.txt Duplicate then Comment out the set(FLUX_FILE_DIR … And in the duplicate version, point to ../etc/CentralizedFluxAndReweightFiles for a relocatable path or use an absolute path like the original line did.

mkdir -p opt/build cd opt/build cmake3 ../../MAT-MINERvA/bootstrap -DCMAKE_INSTALL_PREFIX=pwd/.. -DCMAKE_BUILD_TYPE=Release make install

cd ../../

Now your own code.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMinervaExpt%2FMAT-MINERvA%2Fissues%2F4&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117516362%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4lUQvXWhlVdnpSmdPSWHk4prC3L2SU4Zf0y0wIyc%2Bx0%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIA37DOJXDC2NDQQM3PMTQLUJLVLFANCNFSM5G76Z3MQ&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117526321%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8UjtAXCscM0U%2FuNtpPuf2c%2F3bcXePYmp8GYrNLsVBXM%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117536276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MrvgdI57cm4hFeYxWeVS9aoAgW2t5x5eUuLpFAXdyYs%3D&reserved=0 or Androidhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cheidi.schellman%40oregonstate.edu%7C7d2bb0477b0d4f27ba3f08d99b0e50e3%7Cce6d05e13c5e4d6287a84c4a2713c113%7C0%7C0%7C637711308117536276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=AGE4NfUmRczlKVf4peHbMn0gHqwbdKC%2F7ZFv21tBSUc%3D&reserved=0.

-- Prof. Heidi Schellman Department of Physics, Oregon State University Head, DUNE Collaboration Computing Consortium

https://archive2.iupap.org/position-papers/iupap-statement-on-collaborative-access-to-facilities-and-data/