Skip to content

Commit

Permalink
cuda+py: move C extension into cufinufft package
Browse files Browse the repository at this point in the history
Instead of living in the site-packages root, we put this in the
`cufinufft` package, similarly to `finufft`.
  • Loading branch information
janden committed Dec 18, 2023
1 parent a84c40c commit 78d03ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/cufinufft/cufinufft/_cufinufft.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
try:
if lib is None:
# Find the library.
fh = imp.find_module('cufinufftc')[0]
fh = imp.find_module('cufinufft/cufinufftc')[0]
# Get the full path for the ctypes loader.
full_lib_path = os.path.realpath(fh.name)
fh.close() # Be nice and close the open file handle.
Expand Down
4 changes: 2 additions & 2 deletions python/cufinufft/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
# that is rpath linked to CUDA library, also decorated (by auditwheel).
# Most importantly, pip will manage to install all this stuff in
# in places Python can find it (with a little help).
py_modules=['cufinufftc'],
py_modules=['cufinufft.cufinufftc'],
ext_modules=[
Extension(name='cufinufftc',
Extension(name='cufinufft.cufinufftc',
sources=[source_filename],
libraries=['cufinufft'],
include_dirs=[include_dir],
Expand Down

0 comments on commit 78d03ab

Please sign in to comment.