Skip to content

Commit b06f8d4

Browse files
authored
Merge pull request #22 from dpeerlab/feature/pixi_and_conda_installation
Feature/pixi and conda installation
2 parents ffbe813 + ce2be42 commit b06f8d4

6 files changed

Lines changed: 3997 additions & 7 deletions

File tree

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
# Installation
22

3-
## pip
3+
We recommend CUDA 12.1 with `cu*` packages version ≥24.2 and <26.0. Ensure your CUDA driver version matches or exceeds your toolkit version (≥12.1 for CUDA 12.1).
4+
Adjust package versions in the environment files below if your system requires a different package versions.
45

5-
Before installing **segger**, please install GPU-accelerated versions of PyTorch, RAPIDS, and related packages compatible with your system. *Please ensure all CUDA-enabled packages are compiled for the same CUDA version.*
6+
## Clone the repository
7+
```bash
8+
git clone https://github.com/dpeerlab/segger.git segger && cd segger
9+
```
10+
11+
## Using `conda`
12+
```bash
13+
conda env create -n segger -f environment_cuda121.yml
14+
```
15+
16+
Adjust `environment_cuda121.yml` for other CUDA versions (e.g., `environment_cuda118.yml` for CUDA 11.8).
17+
18+
## Using `pixi`
19+
```bash
20+
pixi install -e cuda121
21+
```
22+
23+
Adjust the environment name in `pixi.toml` as needed for other CUDA versions.
24+
25+
## `pip`
26+
27+
Install GPU-accelerated PyTorch and RAPIDS compatible with your CUDA version before installing **segger**. All CUDA-enabled packages must be compiled for the same CUDA version.
628

729
- **PyTorch & torchvision:** [Installation guide](https://pytorch.org/get-started/locally/)
830
- **torch_scatter:** [Installation guide](https://github.com/rusty1s/pytorch_scatter#installation)
@@ -28,7 +50,6 @@ pip install cupy-cuda12x
2850

2951
```bash
3052
# Clone segger repo and install locally
31-
git clone https://github.com/dpeerlab/segger.git segger && cd segger
3253
pip install -e .
3354
```
3455

environment_cuda121.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
channels:
2+
- pytorch
3+
- nvidia
4+
- rapidsai
5+
- conda-forge
6+
7+
dependencies:
8+
- python>=3.11,<3.12
9+
10+
# RAPIDS 24.10 — last release compatible with CUDA 12.1 runtime
11+
- cuspatial=24.10
12+
- cudf=24.10
13+
- cuml=24.10
14+
- cugraph=24.10
15+
- cupy
16+
17+
- pip
18+
- pip:
19+
- --extra-index-url https://pypi.nvidia.com
20+
- --extra-index-url https://download.pytorch.org/whl/cu121
21+
- --find-links https://data.pyg.org/whl/torch-2.5.0+cu121.html
22+
- torch==2.5.*
23+
- torchvision==0.20.*
24+
- lightning
25+
- torch-geometric
26+
- torch-scatter
27+
- torch-sparse
28+
- cupy-cuda12x>=12.2,<13.0
29+
- --editable .

0 commit comments

Comments
 (0)