Skip to content
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

Merged
merged 18 commits into from
Jun 29, 2024
Merged

OpenCL and GPU builds #55

merged 18 commits into from
Jun 29, 2024

Conversation

isuruf
Copy link
Member

@isuruf isuruf commented Jun 24, 2024

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@conda-forge-webservices
Copy link

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) and found it was in an excellent condition.

recipe/meta.yaml Outdated
number: 1
script: {{ PYTHON }} -m pip install .
number: {{ build_num }}
string: {{ impl }}_py{{ PY_VER }}h{{ PKG_HASH }}_{{ build_num }}
Copy link
Member

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

Suggested change
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]
Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me 👍

@isuruf isuruf closed this Jun 26, 2024
@isuruf isuruf reopened this Jun 26, 2024
Copy link
Member

@jameslamb jameslamb left a 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:

@isuruf
Copy link
Member Author

isuruf commented Jun 28, 2024

Thanks for the review. Merge?

@xhochy xhochy merged commit b6bb4ba into conda-forge:main Jun 29, 2024
62 checks passed
@timkpaine
Copy link
Member

thanks @xhochy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants