Skip to content

Commit

Permalink
Pin host compilers to 11.* during environment generation (#791)
Browse files Browse the repository at this point in the history
* pin host compilers to 11.*

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
m3vaz and pre-commit-ci[bot] authored Jul 11, 2023
1 parent 5ad3412 commit ac75ac0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions scripts/generate-conda-envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,18 @@ def conda(self) -> Reqs:
"pynvml", # tests
)

# gcc 11.3 is incompatible with nvcc <= 11.5.
if (
self.compilers
and self.os == "linux"
and (V(self.ctk_version) <= V("11.5"))
):
deps += (
"gcc_linux-64<=11.2",
"gxx_linux-64<=11.2",
)

if self.compilers and self.os == "linux":
# gcc 11.3 is incompatible with nvcc <= 11.5.
if V(self.ctk_version) <= V("11.5"):
deps += (
"gcc_linux-64<=11.2",
"gxx_linux-64<=11.2",
)
else:
deps += (
"gcc_linux-64=11.*",
"gxx_linux-64=11.*",
)
return deps

def __str__(self) -> str:
Expand Down

0 comments on commit ac75ac0

Please sign in to comment.