Difference between revisions of "O2 pages"

From ALICE Wiki
Jump to navigation Jump to search
(add instructions for gnu-parallel)
 
Line 15: Line 15:
 
• '''Install Run3Analysisvalidation following the instructions of the [https://github.com/AliceO2Group/Run3Analysisvalidation/blob/master/README.md readme]'''
 
• '''Install Run3Analysisvalidation following the instructions of the [https://github.com/AliceO2Group/Run3Analysisvalidation/blob/master/README.md readme]'''
 
*  note that the parallel package is not by default installed on NIKHEF desktops, and you (most likely) do not have root privileges to install the software yourself.
 
*  note that the parallel package is not by default installed on NIKHEF desktops, and you (most likely) do not have root privileges to install the software yourself.
 +
 +
* gnu-parallel can also be installed without root permissions following the steps of the "personal installation"
 +
* '''Word of warning: Use parallel wisely, make sure you know where this is called, otherwise discuss with others (e.g. these instructions were added in order to get the Run3Analysisvalidation framework working). Parallel will submit the same executable in several threats and its easy to crowd the cluster by spawning a lot of jobs. This <u>will</u> cause issues with the Admins.'''
 +
** <code>wget <nowiki>https://ftpmirror.gnu.org/parallel/parallel-20211222.tar.bz2</nowiki></code>
 +
** <code>wget <nowiki>https://ftpmirror.gnu.org/parallel/parallel-20211222.tar.bz2.sig</nowiki></code>
 +
** <code>gpg parallel-20211222.tar.bz2.sig</code>
 +
** <code>bzip2 -dc parallel-20211222.tar.bz2 | tar xvf -</code>
 +
** <code>cd parallel-20211222</code>
 +
** <code>./configure --prefix=$HOME && make && make install</code> (instead of $HOME you can use any other path, there this step will create two directories /bin and /share)
 +
** add the /bin directory to your path variable in your .bashrc, e.g. <code>export PATH=$HOME/bin:$PATH</code>
  
 
'''Useful links'''
 
'''Useful links'''
 
*  [https://github.com/AliceO2Group/Run3Analysisvalidation Run 3 analysis validation package]
 
*  [https://github.com/AliceO2Group/Run3Analysisvalidation Run 3 analysis validation package]

Latest revision as of 10:36, 13 January 2022

Basic instructions for building the o2 framework

Install AliPhysics and O2 following the official instructions

  • If applicable, ask CT to install the prerequisites for CentOS 7 (when asking them, also ask that they install the parallel package, see the section on Run3Analysisvalidation)
  • Follow the instructions of the "I don't have root permissions" section
  • Also add the line export ALIBUILD_WORK_DIR="$HOME/alice/sw" to your .bashrc
  • The lines added to your .bashrc assume that you install O2 and AliPhysics in $HOME/alice/, change these lines accordingly if necessary
  • Build the software
  *   The section “Source code and recipes” can be skipped when building for the first time, but it is useful to read for the future (updating installations)
  *   You might miss some packages that are not on the list of packages that “have to be built as they could not be found from the system” – do not despair, as long as you are not missing a lot of packages not on that list, and you do not miss Python or Python-modules you are probably fine

Setup your remote fork and connect it with your local package following the instructions at [1]


Install Run3Analysisvalidation following the instructions of the readme

  • note that the parallel package is not by default installed on NIKHEF desktops, and you (most likely) do not have root privileges to install the software yourself.
  • gnu-parallel can also be installed without root permissions following the steps of the "personal installation"
  • Word of warning: Use parallel wisely, make sure you know where this is called, otherwise discuss with others (e.g. these instructions were added in order to get the Run3Analysisvalidation framework working). Parallel will submit the same executable in several threats and its easy to crowd the cluster by spawning a lot of jobs. This will cause issues with the Admins.
    • wget https://ftpmirror.gnu.org/parallel/parallel-20211222.tar.bz2
    • wget https://ftpmirror.gnu.org/parallel/parallel-20211222.tar.bz2.sig
    • gpg parallel-20211222.tar.bz2.sig
    • bzip2 -dc parallel-20211222.tar.bz2 | tar xvf -
    • cd parallel-20211222
    • ./configure --prefix=$HOME && make && make install (instead of $HOME you can use any other path, there this step will create two directories /bin and /share)
    • add the /bin directory to your path variable in your .bashrc, e.g. export PATH=$HOME/bin:$PATH

Useful links