Skip to content

Commit 59ef6e9

Browse files
committed
Update cvmfs installation instructions
1 parent de09ecc commit 59ef6e9

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/source/installation/install.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,37 @@ While |graphnet|\ GraphNeT can be installed into existing IceTray environments t
4343

4444
Details on how to run these images as Apptainer environments are provided in the `Docker & Apptainer Images`_ section.
4545

46+
For users who prefer to install |graphnet|\ GraphNeT directly into a CVMFS environment rather than using Docker/Apptainer images, you can follow the steps below. This example uses PyTorch 2.7.0 (CPU) — adjust the PyTorch version and extras according to the compatibility matrix above.
4647

48+
.. code-block:: bash
49+
50+
# Download GraphNeT
51+
git clone https://github.com/graphnet-team/graphnet.git
52+
cd graphnet
53+
54+
# Open your favorite CVMFS distribution
55+
eval `/cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/setup.sh`
56+
/cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/RHEL_7_x86_64/metaprojects/icetray/v1.5.1/env-shell.sh
57+
58+
# Upgrade central packaging libraries
59+
pip install --user --upgrade setuptools versioneer
60+
61+
# Install PyTorch (CPU)
62+
pip3 install --user torch==2.7.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
63+
64+
# Install GraphNeT
65+
pip3 install --user -e .[torch-27,develop] -f https://data.pyg.org/whl/torch-2.7.0+cpu.html
66+
67+
To use |graphnet|\ GraphNeT in a new terminal session, re-activate the CVMFS distribution and the virtual environment:
68+
69+
.. code-block:: bash
70+
71+
eval `/cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/setup.sh`
72+
/cvmfs/icecube.opensciencegrid.org/py3-v4.2.1/RHEL_7_x86_64/metaprojects/icetray/v1.5.1/env-shell.sh
73+
source ~/graphnet_venv/bin/activate
74+
python -c "import graphnet; print(graphnet.__version__)"
75+
76+
which should print the version of |graphnet|\ GraphNeT.
4777

4878
km3io (KM3NeT)
4979
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)