Skip to content

Commit e8482f4

Browse files
authored
Merge pull request #33 from 36000/easier_cu12_support
[ENH] require cuda version to be specified
2 parents fc7b95e + ab0cf0b commit e8482f4

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# GPUStreamlines
22

33
## Installation
4-
To install, simply run `pip install .` in the top-level repository directory.
4+
To install from pypi, simply run `pip install "cuslines[cu13]"` or `pip install "cuslines[cu12]"` depending on your CUDA version.
5+
6+
To install from dev, simply run `pip install ".[cu13]"` or `pip install ".[cu12]"` in the top-level repository directory.
57

68
## Running the examples
79
This repository contains several example usage scripts.

pyproject.toml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,27 @@ dependencies = [
1313
"nibabel",
1414
"tqdm",
1515
"dipy",
16-
"trx-python",
16+
"trx-python"
17+
]
18+
19+
[project.optional-dependencies]
20+
cu13 = [
1721
"nvidia-cuda-runtime",
1822
"nvidia-curand-cu12",
19-
"cuda-python",
20-
"cuda-core",
21-
"cuda-cccl"
23+
"cuda-python<14",
24+
"cuda-core[cu13]",
25+
"cuda-cccl[cu13]"
26+
]
27+
28+
cu12 = [
29+
"nvidia-cuda-runtime-cu12",
30+
"nvidia-curand-cu12",
31+
"cuda-python<13",
32+
"cuda-core[cu12]",
33+
"cuda-cccl[cu12]"
2234
]
2335

36+
2437
[tool.setuptools.packages.find]
2538
where = ["."]
2639
include = ["cuslines*"]

0 commit comments

Comments
 (0)