-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
OpenCL and GPU builds #55
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
recipe/meta.yaml
Outdated
number: 1 | ||
script: {{ PYTHON }} -m pip install . | ||
number: {{ build_num }} | ||
string: {{ impl }}_py{{ PY_VER }}h{{ PKG_HASH }}_{{ build_num }} |
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.
Shouldn't this also work? conda-build
normally evaluates it after reading number
string: {{ impl }}_py{{ PY_VER }}h{{ PKG_HASH }}_{{ build_num }} | |
string: {{ impl }}_py{{ PY_VER }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} |
recipe/meta.yaml
Outdated
string: {{ impl }}_py{{ PY_VER }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} | ||
script: | ||
- set "CMAKE_ARGS=%CMAKE_ARGS% -DUSE_CUDA=1" # [impl == "cuda" and win] | ||
- set "CMAKE_ARGS=%CMAKE_ARGS% -DUSE_GPU=1" # [impl == "cpu" and win] |
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.
Is this okay? I've changed the default CPU builds to include OpenCL as well since it's a lightweight dependency.
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.
Fine with me 👍
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.
This looks great, thank you for all the hard work!
Just commenting to confirm the things I noticed:
- it's totally fine to skip the CUDA build on Windows... LightGBM does that too: [python-package] CUDA version not truly installing microsoft/LightGBM#6417 (comment)
- the CMake patch makes sense to me... I understand why you wouldn't want to statically link Boost for a conda package
Thanks for the review. Merge? |
thanks @xhochy! |
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)