Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
q10 committed Feb 16, 2024
1 parent 68280f5 commit dd42347
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/scripts/utils_build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ __conda_install_clang () {
# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")

# shellcheck disable=SC2155
local llvm_version=15.0.7

echo "[INSTALL] Installing Clang through Conda ..."
# shellcheck disable=SC2086
(exec_with_retries 3 conda install ${env_prefix} -c conda-forge -y clangxx libcxx llvm-openmp compiler-rt ) || return 1
(exec_with_retries 3 conda install ${env_prefix} -c conda-forge -y clangxx=${llvm_version} libcxx=${llvm_version} llvm-openmp=${llvm_version} compiler-rt=${llvm_version} ) || return 1

# The compilers are visible in the PATH as `clang` and `clang++`, so symlinks
# will need to be created
Expand All @@ -128,7 +131,7 @@ __conda_install_clang () {
# NOTE: There appears to be no ROCm equivalent for NVCC_PREPEND_FLAGS:
# https://github.com/ROCm/HIP/issues/931
# shellcheck disable=SC2086
print_exec conda env config vars set ${env_prefix} NVCC_PREPEND_FLAGS=\"-ccbin ${cxx_path} -std=c++17 -allow-unsupported-compiler\"
print_exec conda env config vars set ${env_prefix} NVCC_PREPEND_FLAGS=\"-std=c++17 -ccbin ${cxx_path} -allow-unsupported-compiler\"
}

__compiler_post_install_checks () {
Expand Down

0 comments on commit dd42347

Please sign in to comment.