-
Notifications
You must be signed in to change notification settings - Fork 64
/
batch_build_win_cuda.bat
102 lines (81 loc) · 3.4 KB
/
batch_build_win_cuda.bat
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
@ECHO OFF
ECHO Automatic build script of radarsimcpp/radarsimpy for Windows
ECHO:
ECHO ----------
ECHO RadarSimPy - A Radar Simulator Built with Python
ECHO Copyright (C) 2018 - PRESENT radarsimx.com
ECHO E-mail: [email protected]
ECHO Website: https://radarsimx.com
ECHO:
ECHO ###### ##### # #
ECHO # # ## ##### ## ##### # # # # # # #
ECHO # # # # # # # # # # # # ## ## # #
ECHO ###### # # # # # # # # ##### # # ## # #
ECHO # # ###### # # ###### ##### # # # # # #
ECHO # # # # # # # # # # # # # # # # #
ECHO # # # # ##### # # # # ##### # # # # #
ECHO:
SET pwd=%cd%
ECHO clean old build files
RMDIR /Q/S .\src\radarsimcpp\build
ECHO clean old radarsimpy module
RMDIR /Q/S .\radarsimpy
@REM go to the build folder
MD ".\src\radarsimcpp\build"
CD ".\src\radarsimcpp\build"
ECHO ## Building radarsimcpp.dll with MSVC ##
@REM MSVC needs to set the build type using '--config Relesae'
cmake -DGPU_BUILD=ON -DGTEST=ON ..
cmake --build . --config Release
ECHO ## Building radarsimpy with Cython ##
CD %pwd%
conda.exe run -n py312 python setup.py build_ext -b ./ --tier free --arch gpu
conda.exe run -n py311 python setup.py build_ext -b ./ --tier free --arch gpu
conda.exe run -n py310 python setup.py build_ext -b ./ --tier free --arch gpu
conda.exe run -n py39 python setup.py build_ext -b ./ --tier free --arch gpu
ECHO ## Copying dll files to ./radarsimpy ##
XCOPY ".\src\radarsimcpp\build\Release\radarsimcpp.dll" ".\radarsimpy\"
XCOPY ".\src\radarsimpy\*.py" ".\radarsimpy\"
XCOPY ".\src\radarsimpy\lib\__init__.py" ".\radarsimpy\lib\"
ECHO ## Cleaning radarsimpy builds ##
RMDIR build /s /q
DEL ".\src\radarsimpy\*.c"
DEL ".\src\radarsimpy\*.cpp"
DEL ".\src\radarsimpy\*.html"
DEL ".\src\radarsimpy\raytracing\*.c"
DEL ".\src\radarsimpy\raytracing\*.cpp"
DEL ".\src\radarsimpy\raytracing\*.html"
DEL ".\src\radarsimpy\lib\*.cpp"
DEL ".\src\radarsimpy\lib\*.html"
DEL ".\src\*.cpp"
DEL ".\src\*.html"
ECHO ## Copying lib files to freetier release folder ##
RMDIR /Q/S .\Windows_x86_64_GPU_FreeTier
XCOPY /E /I .\radarsimpy .\Windows_x86_64_GPU_FreeTier\radarsimpy
RMDIR /Q/S .\radarsimpy
conda.exe run -n py312 python setup.py build_ext -b ./ --tier standard --arch gpu
conda.exe run -n py311 python setup.py build_ext -b ./ --tier standard --arch gpu
conda.exe run -n py310 python setup.py build_ext -b ./ --tier standard --arch gpu
conda.exe run -n py39 python setup.py build_ext -b ./ --tier standard --arch gpu
ECHO ## Copying dll files to ./radarsimpy ##
XCOPY ".\src\radarsimcpp\build\Release\radarsimcpp.dll" ".\radarsimpy\"
XCOPY ".\src\radarsimpy\*.py" ".\radarsimpy\"
XCOPY ".\src\radarsimpy\lib\__init__.py" ".\radarsimpy\lib\"
ECHO ## Cleaning radarsimpy builds ##
RMDIR build /s /q
DEL ".\src\radarsimpy\*.c"
DEL ".\src\radarsimpy\*.cpp"
DEL ".\src\radarsimpy\*.html"
DEL ".\src\radarsimpy\raytracing\*.c"
DEL ".\src\radarsimpy\raytracing\*.cpp"
DEL ".\src\radarsimpy\raytracing\*.html"
DEL ".\src\radarsimpy\lib\*.cpp"
DEL ".\src\radarsimpy\lib\*.html"
DEL ".\src\*.cpp"
DEL ".\src\*.html"
ECHO ## Copying lib files to standard release folder ##
RMDIR /Q/S .\Windows_x86_64_GPU
XCOPY /E /I .\radarsimpy .\Windows_x86_64_GPU\radarsimpy
ECHO ## Build completed ##
ECHO ## Run Google test ##
.\src\radarsimcpp\build\Release\radarsimcpp_test.exe