Skip to content

Commit

Permalink
Update compiler package names.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Feb 23, 2023
1 parent 5871498 commit 2bd733c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion conda/recipes/librmm/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ c_compiler_version:
cxx_compiler_version:
- 9

cuda_compiler:
cuda12_compiler:
- cuda-nvcc

cuda11_compiler:
- nvcc

cmake_version:
Expand Down
18 changes: 15 additions & 3 deletions conda/recipes/librmm/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ requirements:
- ninja
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} {{ cuda_version }}
{% if cuda_major == 12 %}
- {{ compiler('cuda12') }} {{ cuda_version }}
{% else %}
- {{ compiler('cuda11') }} {{ cuda_version }}
{% endif %}
- sysroot_{{ target_platform }} {{ sysroot_version }}
host:
{% if cuda_major == 12 %}
Expand Down Expand Up @@ -59,7 +63,11 @@ outputs:
run_exports:
- {{ pin_subpackage("librmm", max_pin="x.x") }}
ignore_run_exports_from:
- {{ compiler('cuda') }}
{% if cuda_major == 12 %}
- {{ compiler('cuda12') }}
{% else %}
- {{ compiler('cuda11') }}
{% endif %}
requirements:
build:
- cmake {{ cmake_version }}
Expand Down Expand Up @@ -116,7 +124,11 @@ outputs:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
ignore_run_exports_from:
- {{ compiler('cuda') }}
{% if cuda_major == 12 %}
- {{ compiler('cuda12') }}
{% else %}
- {{ compiler('cuda11') }}
{% endif %}
requirements:
build:
- cmake {{ cmake_version }}
Expand Down

0 comments on commit 2bd733c

Please sign in to comment.