Skip to content

Commit 3cb4ca0

Browse files
committed
.circleci: Fix windows cmath issues
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 5fe1449 commit 3cb4ca0

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ commands:
4545
our_upload_channel=test
4646
fi
4747
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
48+
install_cuda_compatible_cmath:
49+
description: "Install CUDA compatible cmath"
50+
steps:
51+
- run:
52+
name: _HACK_ Install CUDA compatible cmath
53+
no_output_timeout: 1m
54+
command: |
55+
powershell .circleci/scripts/vs_install_cmath.ps1
4856
4957
binary_common: &binary_common
5058
parameters:
@@ -212,6 +220,7 @@ jobs:
212220
steps:
213221
- checkout_merge
214222
- designate_upload_channel
223+
- install_cuda_compatible_cmath
215224
- run:
216225
name: Build conda packages
217226
no_output_timeout: 20m
@@ -239,6 +248,7 @@ jobs:
239248
steps:
240249
- checkout_merge
241250
- designate_upload_channel
251+
- install_cuda_compatible_cmath
242252
- run:
243253
name: Build wheel packages
244254
command: |
@@ -546,6 +556,7 @@ jobs:
546556
steps:
547557
- checkout
548558
- designate_upload_channel
559+
- install_cuda_compatible_cmath
549560
- run:
550561
name: Generate cache key
551562
# This will refresh cache on Sundays, nightly build should generate new cache.
@@ -587,6 +598,7 @@ jobs:
587598
steps:
588599
- checkout
589600
- designate_upload_channel
601+
- install_cuda_compatible_cmath
590602
- run:
591603
name: Generate cache key
592604
# This will refresh cache on Sundays, nightly build should generate new cache.
@@ -716,6 +728,7 @@ jobs:
716728
steps:
717729
- checkout_merge
718730
- designate_upload_channel
731+
- install_cuda_compatible_cmath
719732
- run:
720733
command: |
721734
set -ex
@@ -729,6 +742,7 @@ jobs:
729742
steps:
730743
- checkout_merge
731744
- designate_upload_channel
745+
- install_cuda_compatible_cmath
732746
- run:
733747
command: |
734748
set -ex

.circleci/config.yml.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ commands:
4545
our_upload_channel=test
4646
fi
4747
echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
48+
install_cuda_compatible_cmath:
49+
description: "Install CUDA compatible cmath"
50+
steps:
51+
- run:
52+
name: _HACK_ Install CUDA compatible cmath
53+
no_output_timeout: 1m
54+
command: |
55+
powershell .circleci/scripts/vs_install_cmath.ps1
4856

4957
binary_common: &binary_common
5058
parameters:
@@ -212,6 +220,7 @@ jobs:
212220
steps:
213221
- checkout_merge
214222
- designate_upload_channel
223+
- install_cuda_compatible_cmath
215224
- run:
216225
name: Build conda packages
217226
no_output_timeout: 20m
@@ -239,6 +248,7 @@ jobs:
239248
steps:
240249
- checkout_merge
241250
- designate_upload_channel
251+
- install_cuda_compatible_cmath
242252
- run:
243253
name: Build wheel packages
244254
command: |
@@ -546,6 +556,7 @@ jobs:
546556
steps:
547557
- checkout
548558
- designate_upload_channel
559+
- install_cuda_compatible_cmath
549560
- run:
550561
name: Generate cache key
551562
# This will refresh cache on Sundays, nightly build should generate new cache.
@@ -587,6 +598,7 @@ jobs:
587598
steps:
588599
- checkout
589600
- designate_upload_channel
601+
- install_cuda_compatible_cmath
590602
- run:
591603
name: Generate cache key
592604
# This will refresh cache on Sundays, nightly build should generate new cache.
@@ -716,6 +728,7 @@ jobs:
716728
steps:
717729
- checkout_merge
718730
- designate_upload_channel
731+
- install_cuda_compatible_cmath
719732
- run:
720733
command: |
721734
set -ex
@@ -729,6 +742,7 @@ jobs:
729742
steps:
730743
- checkout_merge
731744
- designate_upload_channel
745+
- install_cuda_compatible_cmath
732746
- run:
733747
command: |
734748
set -ex
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$CMATH_DOWNLOAD_LINK = "https://raw.githubusercontent.com/microsoft/STL/12c684bba78f9b032050526abdebf14f58ca26a3/stl/inc/cmath"
2+
$VC14_28_INSTALL_PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include"
3+
4+
curl.exe --retry 3 -kL $CMATH_DOWNLOAD_LINK --output "$home\cmath"
5+
Move-Item -Path "$home\cmath" -Destination "$VC14_28_INSTALL_PATH" -Force

0 commit comments

Comments
 (0)