Skip to content
ChpcTraining edited this page Oct 12, 2024 · 17 revisions

Welcome to the O2Physics wiki!

Install O2 Physics

WSL Alma9

As root:

dnf install -y epel-release dnf-plugins-core
dnf update -y
dnf config-manager --set-enabled crb
dnf group install -y 'Development Tools'
cat << EOF > /etc/yum.repos.d/alice-system-deps.repo
[alice-system-deps]
name=alice-system-deps
baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/RPMS/o2-full-deps_el9.x86-64/
enabled=1
gpgcheck=0
EOF
dnf update -y
dnf install -y alice-o2-full-deps alibuild
mkdir -p ~/alice
cd ~/alice
alievn list
aliBuild build O2Physics -j 6
...
==> Updating repositories: done
==> Compiling O2Physics@master (use --debug for full output): done
Development package O2Physics does not need rebuild

==> Build of O2Physics successfully completed on `BBarsch-NB1'.
    Your software installation is at:

      /root/alice/sw/slc9_x86-64

    You can use this package by loading the environment:

      alienv enter O2Physics/latest-master-o2

==> Build directory for devel package O2Physics:
    /root/alice/sw/BUILD/O2Physics-latest/O2Physics
[root@BBarsch-NB1 alice]#
alienv enter O2Physics/latest

Preferred:

alienv enter O2Physics/latest ninja/latest

Check resources for alibuid

Your CPU is an Intel Core i7-10810U with 6 cores and 12 threads. Each core has 2 threads (hyperthreading is enabled), and you have 12 logical processors (CPU(s)).

lscpu
free -h
               total        used        free      shared  buff/cache   available
Mem:            24Gi       1.0Gi        21Gi       0.0Ki       2.4Gi        23Gi
Swap:          7.0Gi       525Mi       6.5Gi

You have 24GB of RAM available, which is more than sufficient for the recommendation of 2GB per core. With 6 cores, the recommendation would be 12GB, and you have double that, meaning you should have no issues with memory during the O2Physics compilation process.

You can compile with multiple jobs using the -j option for make. For example, you could use all 12 threads like this or more conservative only 6.

Fork O2Physics Repo

https://github.com/AliceO2Group/O2Physics/fork
cd ~/alice/O2Physics
git remote -v
[root@BBarsch-NB1 O2Physics]# git remote -v
upstream        https://github.com/AliceO2Group/O2Physics (fetch)
upstream        https://github.com/AliceO2Group/O2Physics (push)
git remote add origin git@github.com:ChpcTraining/O2Physics.git
[root@BBarsch-NB1 O2Physics]# git remote -v
origin  git@github.com:ChpcTraining/O2Physics.git (fetch)
origin  git@github.com:ChpcTraining/O2Physics.git (push)
upstream        https://github.com/AliceO2Group/O2Physics (fetch)
upstream        https://github.com/AliceO2Group/O2Physics (push)

Assuming keys are setup:

git fetch origin

Resources

https://indico.cern.ch/event/1459364/timetable/

image

https://indico.cern.ch/event/1425820/timetable/

image

https://mattermost.web.cern.ch/alice/channels/o2-analysis-tutorial

Clone this wiki locally