@@ -24,6 +24,9 @@ message(STATUS "CXX compiler: ${CMAKE_CXX_COMPILER}, version: "
24
24
"${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} " )
25
25
message (STATUS "C compiler: ${CMAKE_C_COMPILER} , version: "
26
26
"${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} " )
27
+ if (WIN32 )
28
+ set (CMAKE_STATIC_LIBRARY_PREFIX lib )
29
+ endif (WIN32 )
27
30
28
31
if (NOT CMAKE_CROSSCOMPILING )
29
32
find_package (CUDA QUIET )
@@ -165,14 +168,21 @@ include(external/python) # download, build, install python
165
168
include (external/openblas ) # download, build, install openblas
166
169
include (external/mkldnn ) # download, build, install mkldnn
167
170
include (external/swig ) # download, build, install swig
168
- include (external/warpctc ) # download, build, install warpctc
169
171
include (external/boost ) # download boost
170
172
include (external/any ) # download libn::any
171
173
include (external/eigen ) # download eigen3
172
174
include (external/pybind11 ) # download pybind11
173
175
include (external/cares )
174
176
include (external/cub )
175
177
178
+ if (NOT WIN32 )
179
+ # there is no official support of snappystream, warpctc, nccl, cupti in windows
180
+ include (external/snappy ) # download snappy
181
+ include (external/snappystream ) # download snappystream
182
+ include (external/warpctc ) # download, build, install warpctc
183
+ include (cupti )
184
+ endif (NOT WIN32 )
185
+
176
186
if (WITH_DISTRIBUTE )
177
187
if (WITH_GRPC )
178
188
include (external/grpc )
@@ -194,13 +204,10 @@ if(WITH_BRPC_RDMA)
194
204
endif ()
195
205
endif ()
196
206
197
- include (external/snappy ) # download snappy
198
- include (external/snappystream )
199
- include (external/threadpool )
200
207
208
+ include (external/threadpool )
201
209
include (flags ) # set paddle compile flags
202
210
include (cudnn ) # set cudnn libraries, must before configure
203
- include (cupti )
204
211
include (configure ) # add paddle env configuration
205
212
206
213
if (WITH_GPU )
0 commit comments