-
-
Notifications
You must be signed in to change notification settings - Fork 64
Include CUDA enabled pyarrow #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2bf71bc
877ba52
8fe1859
6061ee1
4a0c756
7d17b71
1e346ad
86d85e1
0e79569
1eb263e
080819f
d9b9f82
a633dc4
aff54f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| pushd "%SRC_DIR%"\python | ||
|
|
||
| @rem the symlinks for cmake modules don't work here | ||
| del cmake_modules\BuildUtils.cmake | ||
| del cmake_modules\SetupCxxFlags.cmake | ||
| del cmake_modules\CompilerInfo.cmake | ||
| del cmake_modules\FindNumPy.cmake | ||
| del cmake_modules\FindPythonLibsNew.cmake | ||
| copy /Y "%SRC_DIR%\cpp\cmake_modules\BuildUtils.cmake" cmake_modules\ | ||
| copy /Y "%SRC_DIR%\cpp\cmake_modules\SetupCxxFlags.cmake" cmake_modules\ | ||
| copy /Y "%SRC_DIR%\cpp\cmake_modules\CompilerInfo.cmake" cmake_modules\ | ||
| copy /Y "%SRC_DIR%\cpp\cmake_modules\FindNumPy.cmake" cmake_modules\ | ||
| copy /Y "%SRC_DIR%\cpp\cmake_modules\FindPythonLibsNew.cmake" cmake_modules\ | ||
|
|
||
| SET ARROW_HOME=%LIBRARY_PREFIX% | ||
| SET SETUPTOOLS_SCM_PRETEND_VERSION=%PKG_VERSION% | ||
| SET PYARROW_BUILD_TYPE=release | ||
| SET PYARROW_WITH_S3=1 | ||
| SET PYARROW_WITH_HDFS=1 | ||
| SET PYARROW_WITH_DATASET=1 | ||
| SET PYARROW_WITH_FLIGHT=1 | ||
| SET PYARROW_WITH_GANDIVA=1 | ||
| SET PYARROW_WITH_PARQUET=1 | ||
| SET PYARROW_CMAKE_GENERATOR=Ninja | ||
|
|
||
| %PYTHON% setup.py ^ | ||
| build_ext ^ | ||
| install --single-version-externally-managed ^ | ||
| --record=record.txt | ||
| if errorlevel 1 exit 1 | ||
| popd | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/bin/sh | ||
|
|
||
| set -e | ||
| set -x | ||
|
|
||
| # Build dependencies | ||
| export ARROW_HOME=$PREFIX | ||
| export PARQUET_HOME=$PREFIX | ||
| export SETUPTOOLS_SCM_PRETEND_VERSION=$PKG_VERSION | ||
| export PYARROW_BUILD_TYPE=release | ||
| export PYARROW_WITH_DATASET=1 | ||
| export PYARROW_WITH_FLIGHT=1 | ||
| export PYARROW_WITH_GANDIVA=1 | ||
| export PYARROW_WITH_HDFS=1 | ||
| export PYARROW_WITH_ORC=1 | ||
| export PYARROW_WITH_PARQUET=1 | ||
| export PYARROW_WITH_PLASMA=1 | ||
| export PYARROW_WITH_S3=1 | ||
| BUILD_EXT_FLAGS="" | ||
|
|
||
| # Enable CUDA support | ||
| if [[ ! -z "${cuda_compiler_version+x}" && "${cuda_compiler_version}" != "None" ]] | ||
| then | ||
| export PYARROW_WITH_CUDA=1 | ||
| BUILD_EXT_FLAGS="${BUILD_EXT_FLAGS} --with-cuda" | ||
| else | ||
| export PYARROW_WITH_CUDA=0 | ||
| fi | ||
|
|
||
| # Resolve: Make Error at cmake_modules/SetupCxxFlags.cmake:338 (message): Unsupported arch flag: -march=. | ||
| if [[ "$(uname -m)" = "aarch64" ]] | ||
| then | ||
| export PYARROW_CMAKE_OPTIONS="-DARROW_ARMV8_ARCH=armv8-a" | ||
| fi | ||
|
|
||
| cd python | ||
|
|
||
| $PYTHON setup.py \ | ||
| build_ext $BUILD_EXT_FLAGS \ | ||
| install --single-version-externally-managed \ | ||
| --record=record.txt | ||
|
Comment on lines
+38
to
+41
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we able to use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should check that but in a separate PR.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah that makes sense. Was having a little trouble seeing how this was built before. If this is no different from what we were already doing, agree we don't need to change it here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using pip does not work out of the box: fails with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need something like,
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. The following diff works locally: Just FYI. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question about
piphere