Skip to content

Commit

Permalink
Restrict GCC versions for older CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
mbargull committed Dec 7, 2020
1 parent d230660 commit 3bbc113
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,24 @@ outputs:
requirements:
host:
# Needed to symlink libcuda into sysroot libs.
- {{ compiler("c") }}
# FIXME: nvcc 9.* and 10.* don't work with GCC 9.
# Adding custom GCC versions via conda_build_config.yaml fails
# due to https://github.com/conda/conda-build/issues/3974
# => use hardcoded compiler package names to workaround that.
- {{ compiler("c") }} # [not (linux64 and (cuda_compiler_version or "").startswith(("9.", "10.")))]
- gcc_linux_64 7 # [linux64 and (cuda_compiler_version or "").startswith(("9.", "10."))]
- sysroot_linux-64 2.17 # [linux and cuda_compiler_version == "11.0"]
- __glibc >=2.17 # [linux and cuda_compiler_version == "11.0"]
run:
- sysroot_linux-64 2.17 # [linux and cuda_compiler_version == "11.0"]
- __glibc >=2.17 # [linux and cuda_compiler_version == "11.0"]
test:
requires:
- {{ compiler("c") }}
- {{ compiler("c") }} # [not (linux64 and (cuda_compiler_version or "").startswith(("9.", "10.")))]
- gcc_linux_64 7 # [linux64 and (cuda_compiler_version or "").startswith(("9.", "10."))]
# Host code is forwarded to a C++ compiler
- {{ compiler("cxx") }}
- {{ compiler("cxx") }} # [not (linux64 and (cuda_compiler_version or "").startswith(("9.", "10.")))]
- gxx_linux_64 7 # [linux64 and (cuda_compiler_version or "").startswith(("9.", "10."))]
- sysroot_linux-64 2.17 # [linux and cuda_compiler_version == "11.0"]
files:
- test.cu
Expand Down

0 comments on commit 3bbc113

Please sign in to comment.