-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from flatironinstitute/fix_setpts_dtype_check
Misc Patches
- Loading branch information
Showing
19 changed files
with
86 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Building Wheels | ||
|
||
Noting how I built the wheels for myself in the future, | ||
and in case it is helpful for when this is automated into the FI CI systems. | ||
Typically these steps would be stages in CICD, and fully automated (up to the review). | ||
|
||
``` | ||
# build the wheel | ||
docker build -f ci/docker/cuda10.1/Dockerfile-x86_64 -t garrettwrong/cufinufft-1.0-manylinux2010 . | ||
# optionally push it (might take a long time, because I didn't strip/clean the containers, tsk tsk) | ||
docker push garrettwrong/cufinufft-1.0-manylinux2010 | ||
# Run the container, invoking the build-wheels script to generate the wheels | ||
docker run --gpus all -it -v `pwd`/wheelhouse:/io/wheelhouse -e PLAT=manylinux2010_x86_64 garrettwrong/cufinufft-1.0-manylinux2010 /io/ci/build-wheels.sh | ||
# Create a source distribution (requires you've built or have lib available) | ||
python setup.py sdist | ||
# Copy the wheels we care about to the dist folder | ||
cp -v wheelhouse/cufinufft-1.0-cp3*manylinux2010* dist | ||
# Push to Test PyPI for review/testing | ||
twine upload -r testpypi dist/* | ||
# Tag release. | ||
## Can do in a repo and push or on manually on GH gui. | ||
# Review wheels from test index | ||
pip install -i https://test.pypi.org/simple/ --no-deps cufinufft | ||
# Push to live index | ||
## twine upload dist/* | ||
``` | ||
|
||
Note that because the large size of the library, initially I expect this package will be over the 100MB limit imposed by PyPI. | ||
Generally this just requires pushing a trivial source release, and then requesting an increase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from cufinufft.cufinufft import cufinufft | ||
|
||
__all__ = ['cufinufft'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
from setuptools import setup, Extension | ||
|
||
# Parse the requirements | ||
with open(os.path.join('cufinufftpy', 'requirements.txt'), 'r') as fh: | ||
with open(os.path.join('python/cufinufft', 'requirements.txt'), 'r') as fh: | ||
requirements = [item.strip() for item in fh.readlines()] | ||
|
||
# Sanity check that we can find the CUDA cufinufft libraries before we get too far. | ||
|
@@ -22,15 +22,16 @@ | |
|
||
# Python Package Setup | ||
setup( | ||
name='cufinufftpy', | ||
name='cufinufft', | ||
version='1.0', | ||
author='Python interfaces by: Melody Shih, Joakim Anden, Garrett Wright', | ||
author_email='[email protected]', | ||
url='http://github.com/flatironinstitute/cufinufft', | ||
description='Python interface to cufinufft', | ||
long_description='Python interface to cufinufft (CUDA Flatiron Institute Nonuniform Fast Fourier Transform) library.', | ||
license="Apache 2", | ||
packages=['cufinufftpy'], | ||
packages=['cufinufft'], | ||
package_dir={'': 'python'}, | ||
install_requires=requirements, | ||
# If you'd like to build or alter the docs you may additionally require these. | ||
extras_require={ | ||
|
@@ -42,9 +43,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=['cufinufft'], | ||
py_modules=['cufinufftc'], | ||
ext_modules=[ | ||
Extension(name='cufinufft', | ||
Extension(name='cufinufftc', | ||
sources=[], | ||
libraries=['cufinufft'], | ||
library_dirs=['lib']) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters