Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Nov 7, 2022
1 parent 19250bc commit 3643e95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipe/cross_compile_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CUDA_COMPILER_VERSION=${CUDA_COMPILER_VERSION:-None}
CDT_NAME=${CDT_NAME:-cos6}

if [[ 1 == 1 ]]; then
echo "export CONDA_BUILD_CROSS_COMPILATION=1" >> "${CONDA_PREFIX}/etc/conda/activate.d/conda-forge-ci-setup-activate.sh"
echo "export CONDA_BUILD_CROSS_COMPILATION=1" >> "${CONDA_PREFIX}/etc/conda/activate.d/conda-forge-ci-setup-activate.sh"
export CONDA_BUILD_CROSS_COMPILATION=1
if [ -f ${CI_SUPPORT}/${CONFIG}.yaml ]; then
echo "build_platform:" >> ${CI_SUPPORT}/${CONFIG}.yaml
Expand Down Expand Up @@ -53,8 +53,8 @@ if [[ 1 == 1 ]]; then
curl -L https://developer.download.nvidia.com/compute/cuda/repos/rhel8/${CUDA_HOST_PLATFORM_ARCH}/version_11.2.2.json > manifest.json
# packages for which we also need to install the -devel version
# (names need "_" not "-" to match spelling in manifest);
# some packages don't have a key in the manifest, so we need
# to map new_key: from_old
# some packages don't have a key in the manifest, so we
# need a map, here: new_key:from_old
declare -a DEVELS=(
"cuda_cudart_devel:cuda_cudart"
"cuda_driver_devel:cuda_cudart"
Expand All @@ -73,7 +73,7 @@ if [[ 1 == 1 ]]; then
for map in "${DEVELS[@]}"; do
new_key=$(echo $map | cut -d ':' -f1)
from_old=$(echo $map | cut -d ':' -f2)
DEVELQUERY="${DEVELQUERY:+${DEVELQUERY} |} . += {${new_key}: {version: .${from_old}.version}}"
DEVELQUERY="${DEVELQUERY:+${DEVELQUERY} | }. += {${new_key}: {version: .${from_old}.version}}"
done
# update manifest.json with devel packages
jq "${DEVELQUERY}" manifest.json > manifest_ext.json
Expand Down

0 comments on commit 3643e95

Please sign in to comment.