Skip to content

Commit

Permalink
Add support for CUDA Enhanced Compatibility. (#67)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Feb 1, 2024
2 parents a5117f8 + 40b2cb5 commit 9033405
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source:
sha256: 3ed4d6ce76dd6cc03280cedbee536452d3c45c5e371984146760f55f6290fbd7

build:
number: 0
number: 1
{% if not (environ.get("cuda_compiler_version")|string()).startswith(major_version|string()) %}
skip: true
{% endif %}
Expand All @@ -33,6 +33,11 @@ build:
- {{ pin_subpackage('cuda-python', min_pin='x', max_pin='x') }}
ignore_run_exports_from:
- {{ compiler('cuda') }}
# The run-exports from these dev packages are too tight, so we ignore them.
# The cuda-python package supports CUDA Enhanced Compatibility through its
# use of dlopen, so it is compatible with other CUDA minor versions.
- cuda-cudart-dev
- cuda-nvrtc-dev

requirements:
build:
Expand All @@ -57,8 +62,17 @@ requirements:
- cuda-version {{ major_version }}.{{ minor_version }}
run:
- python
# cuda-python requires cuda-nvrtc from the same major version. We ignored
# run-exports of cuda-nvrtc-dev and instead allow a looser pinning here.
- cuda-nvrtc >={{ major_version }},<{{ major_version+1 }}.0a0
- {{ pin_compatible('cuda-version', min_pin='x', max_pin='x') }}
- pywin32 # [win]
run_constrained:
# cuda-cudart is not a hard dependency because cuda-python re-implements
# cudart. This package is optionally dlopen'd for getting the local cudart
# version with cuda.cudart.getLocalRuntimeVersion(). We ignored run-exports
# of cuda-cudart-dev and instead allow a looser pinning here.
- cuda-cudart >={{ major_version }},<{{ major_version+1 }}.0a0

test:
imports:
Expand All @@ -81,7 +95,8 @@ about:
extra:
recipe-maintainers:
- bdice
- m3vaz
- jakirkham
- mmccarty
- leofang
- m3vaz
- mmccarty
- vyasr

1 comment on commit 9033405

@conda-forge-webservices
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi! This is the friendly automated conda-forge-webservice.

I updated the Github team because of this commit.

  • @vyasr was added to this feedstock maintenance team.

You should get push access to this feedstock and CI services.

Your package won't be available for installation locally until it is built
and synced to the anaconda.org CDN (takes 1-2 hours after the build finishes).

Feel free to join the community Element channel.

NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details on this are here.

Please sign in to comment.