File: .jenkins_pr_win.bat

package info (click to toggle)
libgpuarray 0.7.6-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,552 kB
  • sloc: ansic: 19,235; python: 4,621; makefile: 219; sh: 9
file content (45 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
REM Set path for cuda, conda python and cmake
REM Set conda python, cudnn, cmake path
set PATH=%PATH%;C:\ProgramData\Miniconda2;C:\ProgramData\Miniconda2\Library\usr\bin;C:\ProgramData\Miniconda2\Library\bin;C:\ProgramData\Miniconda2\Scripts
set PATH=%PATH%;%CUDNNPATH%\bin;C:\Program Files\CMake\bin

REM Can also set to "Debug", "Release" to go faster
set GPUARRAY_CONFIG="Release"
REM Use spaces to seperate devices
set DEVICES_CUDA=cuda
set DEVICES_OPENCL=

git rev-parse HEAD

REM Clean up previous installs (to make sure no old files are left)
rmdir %WORKSPACE%\lib /s/q
mkdir %WORKSPACE%\lib
rmdir build /s/q
mkdir build

REM Build libgpuarray and run C tests
cd build
cmake .. -DCMAKE_BUILD_TYPE=%GPUARRAY_CONFIG% -G "NMake Makefiles"
nmake
cd ..

set PATH=%PATH%;%WORKSPACE%\lib

REM Add conda gcc toolchain path
set PATH=%PATH%;C:\ProgramData\Miniconda2\Library\mingw-w64\bin

REM Build the pygpu modules
python setup.py build_ext --inplace

REM Test pygpu
set test=pygpu
for %%d in (%DEVICES_CUDA%) do (
    echo "Testing pygpu for DEVICE=%%d"
    set DEVICE=%%d
	nosetests --with-xunit --xunit-file=%test%_%DEVICE%_tests.xml pygpu\tests
)
for %%d in (%DEVICES_OPENCL%) do (
    echo "Testing pygpu for DEVICE=%%d"
    set DEVICE=%%d
    nosetests --with-xunit --xunit-file=%test%_%DEVICE%_tests.xml pygpu\tests -e test_blas.py
)