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

Allow pynvml and nvidia-ml-py to be coinstalled for 12.* versions #24

Merged
merged 11 commits into from
Dec 18, 2024
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-linux.yml

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

6 changes: 4 additions & 2 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cdt_name:
- cos7
- conda
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
- quay.io/condaforge/linux-anvil-x86_64:alma9
python_min:
- '3.9'
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.

16 changes: 9 additions & 7 deletions .scripts/build_steps.sh

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.

29 changes: 27 additions & 2 deletions azure-pipelines.yml

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

12 changes: 11 additions & 1 deletion build-locally.py

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

18 changes: 11 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
{% set name = "nvidia-ml-py" %}
{% set version = "12.560.30" %}
{% set major_version = version.split(".")[0]|int %}
{% set sha256 = "f0254dc7400647680a072ee02509bfd46102b60bdfeca321576d4d4817e7fe97" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
number: 1

requirements:
host:
- python {{ python_min }}
- pip
- python >=3.4
- setuptools
run:
- python >=3.4
- python >={{ python_min }}
run_constrained:
# Packages that conflict with nvidia-ml-py
# Both packages install pynvml.py
- nvidia-ml ==9999999999
- pynvml ==9999999999
- pynvml ~={{ major_version }}.0

test:
requires:
- python {{ python_min }}
- pip
imports:
- pynvml
commands:
- pip check
requires:
- pip

about:
home: http://www.nvidia.com
Expand All @@ -46,4 +49,5 @@ about:

extra:
recipe-maintainers:
- conda-forge/cuda
- XuehaiPan