-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
36 lines (33 loc) · 1.49 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.shared_windows_runners:
tags:
- shared-windows
- windows
- windows-1809
stages:
- build
before_script:
- choco install cmake -y
- $env:PATH="C:\Program Files\CMake\bin;$env:PATH"
- curl.exe -L http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_441.22_win10.exe --output cuda_installer.exe
- 7z x cuda_installer.exe -o"cuda_installer"
- Start-Process -FilePath ".\cuda_installer\setup.exe" -ArgumentList "-s nvcc_10.2 cublas_10.2 cublas_dev_10.2 cudart_10.2 curand_10.2 curand_dev_10.2 cusolver_10.2 cusolver_dev_10.2 cusparse_10.2 cusparse_dev_10.2" -Wait -NoNewWindow
- echo $?
- copy "cuda_installer\CUDAVisualStudioIntegration\extras\visual_studio_integration\MSBuildExtensions\*.*" "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations"
- $env:PATH="$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;$env:PATH"
- $env:CUDA_PATH="$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v10.2"
- $env:CUDA_PATH_V10_2="$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v10.2"
- Remove-Item –path cuda_installer –recurse
- Remove-Item cuda_installer.exe
build:
extends:
- .shared_windows_runners
stage: build
script:
- git clone https://github.com/ginkgo-project/ginkgo
- cd ginkgo
- mkdir build
- cd build
- $env:PATH="$pwd\windows_shared_library;$env:PATH"
- echo $env:PATH
- cmake -DGINKGO_BUILD_CUDA=ON -DGINKGO_BUILD_OMP=OFF ..
- cmake --build . --config Release