Skip to content

Commit 4a6b82e

Browse files
authored
Fix github action (#1871)
* fix github action * fix github action
1 parent 11ed2ac commit 4a6b82e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ OpenNMT-tf==2.30.*
55
tensorflow-cpu==2.11.*
66
pytest
77
wurlitzer==3.0.*;platform_system=='Linux'
8-
torch==2.2.0
8+
torch==2.4.1

python/tools/prepare_build_environment_windows.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ set -e
44
set -x
55

66
CUDA_ROOT="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.2"
7-
curl -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_537.13_windows.exe
7+
curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_537.13_windows.exe
88
./cuda.exe -s nvcc_12.2 cudart_12.2 cublas_dev_12.2 curand_dev_12.2
99
rm cuda.exe
1010

1111
CUDNN_ROOT="C:/Program Files/NVIDIA/CUDNN/v9.1"
12-
curl -L -nv -o cudnn.exe https://developer.download.nvidia.com/compute/cudnn/9.1.0/local_installers/cudnn_9.1.0_windows.exe
12+
curl --netrc-optional -L -nv -o cudnn.exe https://developer.download.nvidia.com/compute/cudnn/9.1.0/local_installers/cudnn_9.1.0_windows.exe
1313
./cudnn.exe -s
1414
sleep 10
1515
# Remove 11.8 folders
@@ -30,13 +30,13 @@ cp -r "$CUDNN_ROOT"/* "$CUDA_ROOT"
3030
rm cudnn.exe
3131

3232
# See https://github.com/oneapi-src/oneapi-ci for installer URLs
33-
curl -L -nv -o webimage.exe https://registrationcenter-download.intel.com/akdlm/irc_nas/19078/w_BaseKit_p_2023.0.0.25940_offline.exe
33+
curl --netrc-optional -L -nv -o webimage.exe https://registrationcenter-download.intel.com/akdlm/irc_nas/19078/w_BaseKit_p_2023.0.0.25940_offline.exe
3434
./webimage.exe -s -x -f webimage_extracted --log extract.log
3535
rm webimage.exe
3636
./webimage_extracted/bootstrapper.exe -s --action install --components="intel.oneapi.win.mkl.devel" --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
3737

3838
ONEDNN_VERSION=3.1.1
39-
curl -L -O https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${ONEDNN_VERSION}.tar.gz
39+
curl --netrc-optional -L -O https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${ONEDNN_VERSION}.tar.gz
4040
tar xf *.tar.gz && rm *.tar.gz
4141
cd oneDNN-*
4242
cmake -DCMAKE_BUILD_TYPE=Release -DONEDNN_LIBRARY_TYPE=STATIC -DONEDNN_BUILD_EXAMPLES=OFF -DONEDNN_BUILD_TESTS=OFF -DONEDNN_ENABLE_WORKLOAD=INFERENCE -DONEDNN_ENABLE_PRIMITIVE="CONVOLUTION;REORDER" -DONEDNN_BUILD_GRAPH=OFF .

0 commit comments

Comments
 (0)