Skip to content

Commit

Permalink
Use splayed layout to set CUDA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jun 26, 2024
1 parent 811d959 commit cac9cce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
{% set target_name = "x86_64-linux" %} # [linux64]
{% set target_name = "sbsa-linux" %} # [aarch64]
{% set target_name = "x64" %} # [win]
{% set subdir = os.sep.join(["", "targets", target_name]) %} # [linux]
{% set subdir = os.sep.join(["", "Library"]) %} # [win64]

package:
name: {{ name|lower }}
Expand All @@ -28,8 +30,7 @@ build:
- {{ PYTHON }} -m pip install . --no-deps -vv
script_env:
# Ensure that CUDA includes can be found by the host compiler
- CUDA_HOME="${PREFIX}/targets/{{ target_name }}" # [linux]
- CUDA_HOME=%PREFIX%\Library # [win64]
- CUDA_HOME={{ PREFIX ~ subdir ~ os.pathsep ~ BUILD_PREFIX ~ subdir }}
run_exports:
- {{ pin_subpackage('cuda-python', min_pin='x', max_pin='x') }}
ignore_run_exports_from:
Expand Down

0 comments on commit cac9cce

Please sign in to comment.