Skip to content

Commit

Permalink
corr10
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed May 1, 2024
1 parent 5bec95d commit aad6294
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ test:
- pytest
imports:
- httomolibgpu
- httomolibgpu.cupywrapper
- httomolibgpu.misc
- httomolibgpu.prep
- httomolibgpu.recon
Expand Down
11 changes: 11 additions & 0 deletions httomolibgpu/cupywrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cupy_run = False
try:
import cupy as cp
try:
cp.cuda.Device(0).compute_capability
cupy_run = True
except cp.cuda.runtime.CUDARuntimeError:
print("CuPy library is a major dependency for HTTomolibgpu, please install")
import numpy as cp
except ImportError:
import numpy as cp
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
packages = ["httomolibgpu",
"httomolibgpu.cupywrapper",
"httomolibgpu.misc",
"httomolibgpu.prep",
"httomolibgpu.recon",
Expand Down

0 comments on commit aad6294

Please sign in to comment.