Unverified Commit 978ba613 authored by Eli Uriegas's avatar Eli Uriegas Committed by GitHub
Browse files

.circleci: Fix windows cmath issues (#3609)


Signed-off-by: default avatarEli Uriegas <eliuriegas@fb.com>
parent 5fe1449d
......@@ -45,6 +45,14 @@ commands:
our_upload_channel=test
fi
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
install_cuda_compatible_cmath:
description: "Install CUDA compatible cmath"
steps:
- run:
name: _HACK_ Install CUDA compatible cmath
no_output_timeout: 1m
command: |
powershell .circleci/scripts/vs_install_cmath.ps1
binary_common: &binary_common
parameters:
......@@ -212,6 +220,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Build conda packages
no_output_timeout: 20m
......@@ -239,6 +248,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Build wheel packages
command: |
......@@ -546,6 +556,7 @@ jobs:
steps:
- checkout
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
......@@ -587,6 +598,7 @@ jobs:
steps:
- checkout
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
......@@ -716,6 +728,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
command: |
set -ex
......@@ -729,6 +742,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
command: |
set -ex
......
......@@ -45,6 +45,14 @@ commands:
our_upload_channel=test
fi
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
install_cuda_compatible_cmath:
description: "Install CUDA compatible cmath"
steps:
- run:
name: _HACK_ Install CUDA compatible cmath
no_output_timeout: 1m
command: |
powershell .circleci/scripts/vs_install_cmath.ps1
binary_common: &binary_common
parameters:
......@@ -212,6 +220,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Build conda packages
no_output_timeout: 20m
......@@ -239,6 +248,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Build wheel packages
command: |
......@@ -546,6 +556,7 @@ jobs:
steps:
- checkout
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
......@@ -587,6 +598,7 @@ jobs:
steps:
- checkout
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
......@@ -716,6 +728,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
command: |
set -ex
......@@ -729,6 +742,7 @@ jobs:
steps:
- checkout_merge
- designate_upload_channel
- install_cuda_compatible_cmath
- run:
command: |
set -ex
......
$CMATH_DOWNLOAD_LINK = "https://raw.githubusercontent.com/microsoft/STL/12c684bba78f9b032050526abdebf14f58ca26a3/stl/inc/cmath"
$VC14_28_INSTALL_PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include"
curl.exe --retry 3 -kL $CMATH_DOWNLOAD_LINK --output "$home\cmath"
Move-Item -Path "$home\cmath" -Destination "$VC14_28_INSTALL_PATH" -Force
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment