From 4f0c4736901e84333035724c5f44f09c78fc2a99 Mon Sep 17 00:00:00 2001 From: Jordan Jacobelli Date: Tue, 24 May 2022 12:30:13 +0200 Subject: [PATCH] Fix conda recipes (#532) - Simplify recipes using `{{ target_platform }}` for `sysroot` package - Add `nvcc` to `cuspatial` conda recipe Authors: - Jordan Jacobelli (https://github.com/Ethyling) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Mark Harris (https://github.com/harrism) URL: https://github.com/rapidsai/cuspatial/pull/532 --- conda/recipes/cuspatial/conda_build_config.yaml | 3 +++ conda/recipes/cuspatial/meta.yaml | 7 +++++-- conda/recipes/libcuspatial/meta.yaml | 9 +++------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/conda/recipes/cuspatial/conda_build_config.yaml b/conda/recipes/cuspatial/conda_build_config.yaml index c049d21fd..322fe6faa 100644 --- a/conda/recipes/cuspatial/conda_build_config.yaml +++ b/conda/recipes/cuspatial/conda_build_config.yaml @@ -4,5 +4,8 @@ c_compiler_version: cxx_compiler_version: - 9 +cuda_compiler: + - nvcc + sysroot_version: - "2.17" diff --git a/conda/recipes/cuspatial/meta.yaml b/conda/recipes/cuspatial/meta.yaml index 9178f0288..02b9a83ff 100644 --- a/conda/recipes/cuspatial/meta.yaml +++ b/conda/recipes/cuspatial/meta.yaml @@ -3,6 +3,7 @@ {% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') + environ.get('VERSION_SUFFIX', '') %} {% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %} {% set py_version=environ.get('CONDA_PY', 36) %} +{% set cuda_version = '.'.join(environ.get('CUDA', '11.5').split('.')[:2]) %} package: name: cuspatial @@ -16,13 +17,15 @@ build: string: py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} script_env: - VERSION_SUFFIX + ignore_run_exports_from: + - {{ compiler('cuda') }} requirements: build: - {{ compiler('c') }} - {{ compiler('cxx') }} - - sysroot_linux-64 {{ sysroot_version }} # [linux64] - - sysroot_linux-aarch64 {{ sysroot_version }} # [aarch64] + - {{ compiler('cuda') }} {{ cuda_version }} + - sysroot_{{ target_platform }} {{ sysroot_version }} host: - python - cython >=0.29,<0.30 diff --git a/conda/recipes/libcuspatial/meta.yaml b/conda/recipes/libcuspatial/meta.yaml index 4a7199232..26e9d8177 100644 --- a/conda/recipes/libcuspatial/meta.yaml +++ b/conda/recipes/libcuspatial/meta.yaml @@ -33,8 +33,7 @@ requirements: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ compiler('cuda') }} {{ cuda_version }} - - sysroot_linux-64 {{ sysroot_version }} # [linux64] - - sysroot_linux-aarch64 {{ sysroot_version }} # [aarch64] + - sysroot_{{ target_platform }} {{ sysroot_version }} host: - libcudf {{ minor_version }}.* - librmm {{ minor_version }}.* @@ -51,8 +50,7 @@ outputs: run_exports: - {{ pin_subpackage("libcuspatial", max_pin="x.x") }} ignore_run_exports_from: - - nvcc_linux-64 # [linux64] - - nvcc_linux-aarch64 # [aarch64] + - {{ compiler('cuda') }} requirements: build: - cmake {{ cmake_version }} @@ -77,8 +75,7 @@ outputs: number: {{ GIT_DESCRIBE_NUMBER }} string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} ignore_run_exports_from: - - nvcc_linux-64 # [linux64] - - nvcc_linux-aarch64 # [aarch64] + - {{ compiler('cuda') }} requirements: build: - cmake {{ cmake_version }}