Skip to content

Commit

Permalink
Conditional on variable declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Jan 11, 2024
1 parent 5a27d41 commit 1ad4439
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conda/recipes/pynvjitlink/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

{% set data = load_file_data("pyproject.toml") %}

{% if cuda_compiler_version is defined %}
{% set cuda_major = cuda_compiler_version.split(".")[0]|int %}
{% set cuda_minor = cuda_compiler_version.split(".")[1]|int %}
{% else %}
{% set cuda_major = 0 %}
{% set cuda_minor = 0 %}
{% endif %}

package:
name: pynvjitlink
Expand Down

0 comments on commit 1ad4439

Please sign in to comment.