Skip to content

Commit

Permalink
Use GCC 13 in CUDA 12 conda builds. (#1513)
Browse files Browse the repository at this point in the history
conda-forge is using GCC 13 for CUDA 12 builds. This PR updates CUDA 12 conda builds to use GCC 13, for alignment.

These PRs should be merged in a specific order, see rapidsai/build-planning#129 for details.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Jake Awe (https://github.com/AyodeAwe)
  - James Lamb (https://github.com/jameslamb)

URL: #1513
  • Loading branch information
bdice authored Jan 17, 2025
1 parent dbdc75d commit 549f77b
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 46 deletions.
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ dependencies:
- shapely
- sphinx
- sqlite
- sysroot_linux-64==2.17
- sysroot_linux-64==2.28
name: all_cuda-118_arch-x86_64
4 changes: 2 additions & 2 deletions conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
- cxx-compiler
- cython>=3.0.0
- doxygen
- gcc_linux-64=11.*
- gcc_linux-64=13.*
- geopandas>=1.0.0
- ipython
- ipywidgets
Expand Down Expand Up @@ -51,5 +51,5 @@ dependencies:
- shapely
- sphinx
- sqlite
- sysroot_linux-64==2.17
- sysroot_linux-64==2.28
name: all_cuda-125_arch-x86_64
14 changes: 7 additions & 7 deletions conda/recipes/cuproj/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
c_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cxx_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cuda_compiler:
- cuda-nvcc

cuda11_compiler:
- nvcc
- cuda-nvcc # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- nvcc # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

c_stdlib:
- sysroot

c_stdlib_version:
- "2.17"
- "2.28"

cmake_version:
- ">=3.26.4,!=3.30.0"
8 changes: 3 additions & 5 deletions conda/recipes/cuproj/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2024, NVIDIA CORPORATION.
# Copyright (c) 2018-2025, NVIDIA CORPORATION.

{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %}
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
Expand Down Expand Up @@ -34,10 +34,8 @@ build:
- SCCACHE_S3_USE_SSL
- SCCACHE_S3_NO_CREDENTIALS
ignore_run_exports_from:
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }}
{% else %}
- {{ compiler('cuda') }}
{% if cuda_major != "11" %}
- cuda-cudart-dev
{% endif %}

Expand All @@ -46,7 +44,7 @@ requirements:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }} ={{ cuda_version }}
- {{ compiler('cuda') }} ={{ cuda_version }}
{% else %}
- {{ compiler('cuda') }}
{% endif %}
Expand Down
14 changes: 7 additions & 7 deletions conda/recipes/cuspatial/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
c_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cxx_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cuda_compiler:
- cuda-nvcc

cuda11_compiler:
- nvcc
- cuda-nvcc # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- nvcc # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

c_stdlib:
- sysroot

c_stdlib_version:
- "2.17"
- "2.28"

cmake_version:
- ">=3.26.4,!=3.30.0"
8 changes: 3 additions & 5 deletions conda/recipes/cuspatial/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2024, NVIDIA CORPORATION.
# Copyright (c) 2018-2025, NVIDIA CORPORATION.

{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %}
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
Expand Down Expand Up @@ -34,10 +34,8 @@ build:
- SCCACHE_S3_USE_SSL
- SCCACHE_S3_NO_CREDENTIALS
ignore_run_exports_from:
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }}
{% else %}
- {{ compiler('cuda') }}
{% if cuda_major != "11" %}
- cuda-cudart-dev
{% endif %}

Expand All @@ -46,7 +44,7 @@ requirements:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }} ={{ cuda_version }}
- {{ compiler('cuda') }} ={{ cuda_version }}
{% else %}
- {{ compiler('cuda') }}
{% endif %}
Expand Down
14 changes: 7 additions & 7 deletions conda/recipes/libcuspatial/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
c_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cxx_compiler_version:
- 11
- 13 # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- 11 # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cuda_compiler:
- cuda-nvcc

cuda11_compiler:
- nvcc
- cuda-nvcc # [not os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]
- nvcc # [os.environ.get("RAPIDS_CUDA_VERSION", "").startswith("11")]

cmake_version:
- ">=3.26.4,!=3.30.0"
Expand All @@ -20,4 +20,4 @@ c_stdlib:
- sysroot

c_stdlib_version:
- "2.17"
- "2.28"
12 changes: 4 additions & 8 deletions conda/recipes/libcuspatial/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2024, NVIDIA CORPORATION.
# Copyright (c) 2018-2025, NVIDIA CORPORATION.

{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') %}
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
Expand Down Expand Up @@ -35,7 +35,7 @@ requirements:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }} ={{ cuda_version }}
- {{ compiler('cuda') }} ={{ cuda_version }}
{% else %}
- {{ compiler('cuda') }}
{% endif %}
Expand All @@ -61,10 +61,8 @@ outputs:
run_exports:
- {{ pin_subpackage("libcuspatial", max_pin="x.x") }}
ignore_run_exports_from:
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }}
{% else %}
- {{ compiler('cuda') }}
{% if cuda_major != "11" %}
- cuda-cudart-dev
{% endif %}
requirements:
Expand Down Expand Up @@ -103,10 +101,8 @@ outputs:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
ignore_run_exports_from:
{% if cuda_major == "11" %}
- {{ compiler('cuda11') }}
{% else %}
- {{ compiler('cuda') }}
{% if cuda_major != "11" %}
- cuda-cudart-dev
{% endif %}
requirements:
Expand Down
50 changes: 46 additions & 4 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,28 @@ dependencies:
matrices:
- matrix:
arch: x86_64
cuda: "11.8"
packages:
- &gcc_amd64_cuda11 gcc_linux-64=11.*
- &sysroot_amd64 sysroot_linux-64==2.28
- matrix:
arch: aarch64
cuda: "11.8"
packages:
- &gcc_aarch64_cuda11 gcc_linux-aarch64=11.*
- &sysroot_aarch64 sysroot_linux-aarch64==2.28
- matrix:
arch: x86_64
cuda: "12.*"
packages:
- &gcc_amd64 gcc_linux-64=11.*
- &sysroot_amd64 sysroot_linux-64==2.17
- &gcc_amd64 gcc_linux-64=13.*
- *sysroot_amd64
- matrix:
arch: aarch64
cuda: "12.*"
packages:
- &gcc_aarch64 gcc_linux-aarch64=11.*
- &sysroot_aarch64 sysroot_linux-aarch64==2.17
- &gcc_aarch64 gcc_linux-aarch64=13.*
- *sysroot_aarch64
- output_types: conda
matrices:
- matrix:
Expand Down Expand Up @@ -228,11 +242,25 @@ dependencies:
matrices:
- matrix:
arch: x86_64
cuda: "11.8"
packages:
- *gcc_amd64_cuda11
- *sysroot_amd64
- matrix:
arch: aarch64
cuda: "11.8"
packages:
- *gcc_aarch64_cuda11
- *sysroot_aarch64
- matrix:
arch: x86_64
cuda: "12.*"
packages:
- *gcc_amd64
- *sysroot_amd64
- matrix:
arch: aarch64
cuda: "12.*"
packages:
- *gcc_aarch64
- *sysroot_aarch64
Expand Down Expand Up @@ -262,11 +290,25 @@ dependencies:
matrices:
- matrix:
arch: x86_64
cuda: "11.8"
packages:
- *gcc_amd64_cuda11
- *sysroot_amd64
- matrix:
arch: aarch64
cuda: "11.8"
packages:
- *gcc_aarch64_cuda11
- *sysroot_aarch64
- matrix:
arch: x86_64
cuda: "12.*"
packages:
- *gcc_amd64
- *sysroot_amd64
- matrix:
arch: aarch64
cuda: "12.*"
packages:
- *gcc_aarch64
- *sysroot_aarch64
Expand Down

0 comments on commit 549f77b

Please sign in to comment.