Skip to content

Add instructions to install sphericart on izar #3

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions gpu/sphericart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Installing `sphericart` on `izar`

You have to do the installation on an interactive node *with* GPU. Currently, `sphericart` compiles in parallel and uses a lot of RAM, so request a node with some amount of RAM larger than 4GB, or edit `sphericart-torch/setup.py` and remove the `--parallel` flag from the `cmake` invocation.

You can request a suitable node with:

```bash
Sinteract -g gpu:1 -t 01:00:00 -m 32G
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Sinteract -g gpu:1 -t 01:00:00 -m 32G
sinteract -g gpu:1 -t 01:00:00 -m 32G

```

Once you have the node, run something along these lines:


```bash

# -- prerequisites --

module purge
module load git
module load gcc/11.3.0
module load python/3.10.4
module load cuda/12.1.1
module load cudnn/8.9.7.29-12


# make & activate venv for this -- skip if you already have one
cd ~
mkdir envs
cd envs/

python -m venv torch-1
source torch-1/bin/activate

# this will install the current version of pytorch, with CUDA
pip install torch

# -- now sphericart --

git clone https://github.com/lab-cosmo/sphericart
cd sphericart
# maybe edit setup.py if RAM is an issue
pip install .[torch]

```

That's it, enjoy.