Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update from PaddlePaddle #3

Merged
merged 230 commits into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
a7fadce
fix dll load bug on windows from python3.8 (#27324)
zhwesky2010 Sep 17, 2020
9bea834
Refine the unittest to support py38 (#27208)
gfwm2013 Sep 17, 2020
7d7f0fa
python for windows not install netifaces (#27355)
zhwesky2010 Sep 17, 2020
9ee77b1
Fix elementwise_floordiv op (#27352)
ForFishes Sep 17, 2020
d773c6c
Support precision test
chalsliu Sep 17, 2020
9f9d15e
fix the bug of non-exit, test=develop (#27350)
Sep 17, 2020
25902b2
del exclusive ut which name with test_dist_ (#27316)
XieYunshen Sep 17, 2020
fd496fa
modified the ut name with test_dist (#27315)
XieYunshen Sep 17, 2020
f0a5eef
cancel three disable ut (#27359)
XieYunshen Sep 17, 2020
6927920
Update hapi.model._save_inference_model by using new features of dy2s…
LiuChiachi Sep 17, 2020
63203c4
enhance reduce op which can reduce tensor with arbitrary rank
joey12300 Sep 17, 2020
bcb4a58
Replace the 'spawn' start method with 'fork' start method for multipr…
gfwm2013 Sep 17, 2020
da583ed
Fix paddle build install requirements (#27378)
tianshuo78520a Sep 17, 2020
e9a0fbf
OP报错信息优化 (#27301)
gavin1332 Sep 17, 2020
f36b9a7
【Fleet2.0 Util】 add documents (#26698)
123malin Sep 17, 2020
515efe4
add empty_like op (python, and unit test), use c++ implementation of …
windstamp Sep 17, 2020
3c11717
add op version checker to ir passes (#27329)
shangzhizhou Sep 17, 2020
01659a6
Polish operators error message in average_accumlate OP (#27268)
chenjiaoAngel Sep 17, 2020
ac82baa
[Dy2Stat-log] Add feature also_to_stdout and optimize log messages (#…
liym27 Sep 17, 2020
b6a4349
fix the error message for the math dir
wawltor Sep 18, 2020
d28162b
Remove save_quantized_model in ImperativeQuantAware. (#27240)
wzzju Sep 18, 2020
fef94ea
fix cross_entropy bug of the axis parameter in log_softmax (#27311)
chajchaj Sep 18, 2020
1a75597
fix cudnn dyload (#27308)
GaoWei8 Sep 18, 2020
03b0e0c
Remove dependences of cv2 (#27286)
LielinJiang Sep 18, 2020
7e6dfcf
Add 3 pass version check (#27283)
haozech Sep 18, 2020
fd7ab4e
register pass compatibility (#27357)
cryoco Sep 18, 2020
9fdcfe8
Support python3.8 (#26850)
gfwm2013 Sep 18, 2020
d726fd5
enhance dataset err msg (#27363)
yaoxuefeng6 Sep 18, 2020
4c5cfde
fix paddle.nn.Transformer api (#27391)
FrostML Sep 18, 2020
a5ef246
Optimize emb_eltwise_layernorm_plugin and support fp16 (#27128)
cryoco Sep 18, 2020
9962650
【paddle.fleet】gloo and util (#27213)
seiriosPlus Sep 18, 2020
d6b54de
【paddle.fleet】Fix/role maker api fix (#27326)
seiriosPlus Sep 20, 2020
f936adb
fix adam (#27343)
MRXLT Sep 21, 2020
f3b4a64
fix CIFAR MNIST UCIHousing dataset. test=develop (#27368)
heavengate Sep 21, 2020
bbc84e0
Refine error msg in paddle/fluid/framework/details [part 1] (#25631)
zhiqiu Sep 21, 2020
aa7835e
Correct the error in decorator.py (#27409)
gfwm2013 Sep 21, 2020
02606d4
Quant op dev (#25932)
huangxu96 Sep 21, 2020
39546aa
Add pass compatible and unit test. (#27377)
jiweibo Sep 21, 2020
c7e5cf1
rm setup.py;test=document_fix (#27421)
lelelelelez Sep 21, 2020
669efb9
Fix bug: shapes of Topk outputs are wrong when the parameter k is Tensor
LutaoChu Sep 21, 2020
aba759b
[Feature] Enhance inplace addto strategy for gradient accumulation in…
zhiqiu Sep 21, 2020
37f7414
Optimization error message ;test=document_fix (#27424)
tianshuo78520a Sep 21, 2020
d936619
fix bug sequececonv_eltadd_relu_fuse_pass (#27404)
shangzhizhou Sep 21, 2020
e217e96
fix pool bug (#27366)
LDOUBLEV Sep 21, 2020
fc61efd
fix port env bug(int);test=develop (#27405)
danleifeng Sep 21, 2020
4bd7aa2
use paddle.get_default_dtype in vision datasets. test=develop (#27426)
heavengate Sep 21, 2020
1d3b27c
add double grad compute for batch norm (#27296)
ceci3 Sep 21, 2020
f11a53e
Optimize argsort Op performance on GPU
LutaoChu Sep 21, 2020
13a4c74
add mv op(c++, python, unit test) (#27024)
windstamp Sep 21, 2020
3fe176d
Fix test_gast_with_compatibility.py due to the problem of gast in pyt…
gfwm2013 Sep 21, 2020
8182337
clear pass logs (#27434)
cryoco Sep 22, 2020
afe9490
Rename fluid_inference to paddle_inference. (#27422)
jiweibo Sep 22, 2020
f4c750d
Add the cpu version of segment sum mean max min op
ZHUI Sep 22, 2020
18f2ea6
remove paddle.readers API (#26727)
heavengate Sep 22, 2020
b7371fa
judge whether remove build dir to accelerate compile,test=develop (#2…
zhwesky2010 Sep 22, 2020
dd4c2d8
enhance error messages, test=develop (#27423)
Shixiaowei02 Sep 22, 2020
7ba6279
[Dy2stat] Refine error msg of @to_static if not in imperative mode (#…
Aurelius84 Sep 22, 2020
9f3a9be
update python 2.7.15 (#27435)
tianshuo78520a Sep 22, 2020
905e234
add endpoints log;test=develop (#27439)
danleifeng Sep 22, 2020
fda54c0
errmsg refine of trt plugin (#27309)
cryoco Sep 22, 2020
0a862fd
refine the precious of linspace Op using half way (#27452)
wangchaochaohu Sep 22, 2020
827ac36
Use dygraph mode by default (#27443)
pangyoki Sep 22, 2020
a045247
Enhance Op's Error Message (#27455)
123malin Sep 22, 2020
76fb95f
avoid data transform for linspace OP (#27444)
wangchaochaohu Sep 22, 2020
0721767
fix server_num bug;test=develop (#27442)
danleifeng Sep 23, 2020
7650644
Polish some lost invalid error message (#27445)
chenwhql Sep 23, 2020
5034d18
update for 2.0 inference api. (#27473)
jiweibo Sep 23, 2020
906e7f9
add fuse_bn_act op (#27230)
zhangting2020 Sep 23, 2020
43240a1
[doc] Add example for cache and buffered (#26819)
juncaipeng Sep 23, 2020
41b5955
Polish no onwer ops error message (#27448)
chenwhql Sep 23, 2020
292b24a
fix bug MD of compile, And add MD/STATIC/OPENBLAS inference lib check…
zhwesky2010 Sep 23, 2020
d7b7dcd
fix cmake dependencies of test_recognize_digits, test=develop (#27475)
qili93 Sep 23, 2020
bc5f024
large scale kv speedup (#26510)
seiriosPlus Sep 23, 2020
5508c78
Fix bug: The calculation result of Diag_v2 Op under large size input …
LutaoChu Sep 23, 2020
1e1ae5c
Make the Bind Method of Tensor more automatic (#27270)
zhwesky2010 Sep 23, 2020
c17f9cf
[bug fix]:Memory increases after adapting the cudnn version to cudnn8…
shangzhizhou Sep 23, 2020
19a58b3
disable ut test_vision_models and test_pretrained_model,test=document…
XieYunshen Sep 23, 2020
bb84f0e
Add new paddle.save/load APIs (#27331)
chenwhql Sep 23, 2020
66951ab
modified timeout value for 4 ut (#27462)
XieYunshen Sep 23, 2020
c0caf0e
fix ut for static graph (#27506)
seiriosPlus Sep 23, 2020
4a9d21d
Add GPU Kernels of Segment Ops, support, sum, max, min, mean
ZHUI Sep 24, 2020
5c8fdb5
Fix GradientClipByGlobalNorm dtype bug (#27437)
zhwesky2010 Sep 24, 2020
dc71311
refine the error message for bath size like OP (#27446)
wangchaochaohu Sep 24, 2020
fc9d80b
[Dy2Stat]rename StaticLayer into StaticFunction (#27487)
Aurelius84 Sep 24, 2020
29f1560
Disable ut quickly.
chalsliu Sep 24, 2020
78a27a2
Reproduce summary api (#27367)
LielinJiang Sep 24, 2020
f2c97b6
replace dataset with fake data (#27519)
chenwhql Sep 24, 2020
df43905
use iwyu clean include (#27267)
wanghuancoder Sep 24, 2020
081fb2f
Remove dependency on nltk for paddle __init__. (#27388)
guoshengCS Sep 24, 2020
8f7bb52
fix tensorrt 6 build error. test=develop (#27511)
T8T9 Sep 24, 2020
f91c37e
Refine error message of MatchMatrix and PyramidHash (#27484)
Aurelius84 Sep 24, 2020
4236367
fix approveals message (#27531)
tianshuo78520a Sep 24, 2020
e1fb77d
[2.0RC]refine error message in shuffle channel OP (#27505)
shippingwang Sep 24, 2020
b6ecf35
disable test_paddle_save_load,test=document_fix (#27534)
XieYunshen Sep 24, 2020
ec4155d
windows lib size crop from 5.4G to 3.9G (#27477)
jiweibo Sep 24, 2020
59c0499
change test main process wait time (#27516)
chenwhql Sep 24, 2020
d7f422c
fix error message in conv/conv_transpose. test=develop (#27464)
heavengate Sep 24, 2020
273f58a
Decrease Random Failure Probability for test_parallel_executor_mnist,…
zhhsplendid Sep 24, 2020
b7319ef
fix err msg in pixel shuffle op (#27503)
shippingwang Sep 24, 2020
df7fabe
Fix memory leak for mkldnn. (#27493)
jiweibo Sep 24, 2020
32ad4f9
【paddle.fleet】 Usages Change: from fleet.util() to fleet.util (#27468)
123malin Sep 24, 2020
3d55221
register seq_concat_fc_fuse pass. (#27479)
jiweibo Sep 24, 2020
8473ee9
make places of DataLoader optional. (#27432)
heavengate Sep 24, 2020
d20349b
add unittest count ,install check on windows (#27492)
zhwesky2010 Sep 24, 2020
c83ade6
add AsDuplicable for sync_comm op(#27515)
mapingshuo Sep 25, 2020
a2e0b7c
update gcc8 in python3 ci docker (#26979)
tianshuo78520a Sep 25, 2020
41a7ce8
fix random failure of test_buffer_sahred_memory_reuse_pass (#27551)
zhiqiu Sep 25, 2020
059bfd6
change wlist.json, add annotation (#27438)
MingMingShangTian Sep 25, 2020
c5c1347
Add compatibility check for four mkldnn pass (#27364)
juncaipeng Sep 25, 2020
e550fc0
fleet2.0 add fp16 grad compression (#27480)
wangxicoding Sep 25, 2020
dd04b16
fix test imperative se resnext failed (#27538)
chenwhql Sep 25, 2020
597345d
fix cuda atomic for ARCH<350 for the automic_max
ZHUI Sep 25, 2020
6e16a09
fix unittest_group_norm_op_v2, test=develop (#27486)
frankwhzhang Sep 25, 2020
77a36f8
[buf fix]:fix some unittests error (#27540)
shangzhizhou Sep 25, 2020
6bb02e8
increase retry time (#27553)
zhiqiu Sep 25, 2020
effd51b
Fix error message in operator/utils.h (#27532)
liym27 Sep 25, 2020
36ed83d
Refine PADDLE_ENFORCE (#27360)
GaoWei8 Sep 25, 2020
fab4e6d
add abs support double grad
ZHUI Sep 25, 2020
6fc74bb
add fp16 for matmul (#27523)
ForFishes Sep 25, 2020
c143326
try to fix test_paddle_save_load unknown timeout (#27536)
chenwhql Sep 25, 2020
8daccc9
Fix batch norm double grad compute (#27549)
ceci3 Sep 25, 2020
6f69a4c
add xpu in heter mode (#27000)
Thunderbrook Sep 25, 2020
09f1953
Revert "Disable ut quickly."
chalsliu Sep 25, 2020
a5b3263
Refine error msg in paddle/fluid/imperative (#27521)
zhiqiu Sep 25, 2020
0b4bb02
Add static mode check on data() (#27495)
zhiqiu Sep 25, 2020
b38e4f2
Refine vision models (#27476)
LielinJiang Sep 25, 2020
b0ee140
Add conv2d bfloat16 support (#27325)
wozna Sep 26, 2020
ecfdfc9
fix guard place set error (#27573)
chenwhql Sep 26, 2020
a85592b
fix cpplint error for the autmic max/min
ZHUI Sep 26, 2020
86fa043
init test=develop (#27554)
gongweibao Sep 27, 2020
b9d739a
fix pool bug, test=develop (#27537)
LDOUBLEV Sep 27, 2020
42065ba
fix activate_nn_grad, test=develop (#27555)
LDOUBLEV Sep 27, 2020
0e101c4
Fix test dist fleet heter ctr (#27513)
MrChengmo Sep 27, 2020
9b12401
modified storage address of block file (#27576)
XieYunshen Sep 27, 2020
162b4d6
remove to_variable from 2.0 (#27528)
zhwesky2010 Sep 27, 2020
3507496
Refine error msg in paddle/fluid/framework/details [part 2] (#27429)
zhiqiu Sep 27, 2020
d014e29
fix error message (#27318)
MrChengmo Sep 27, 2020
d37b377
register log double grad kernel for cpu and cuda
joey12300 Sep 27, 2020
6b727e0
support elementwise add, activation, matmul on Baidu Kunlun (#27143)
QingshuChen Sep 27, 2020
9b7ebf1
[API 2.0] Fix example code of api 'case' and add/delete alias (#27577)
liym27 Sep 27, 2020
c5b6e44
fix cholesky of test_math_op_patch_var_base (#27591)
zhwesky2010 Sep 27, 2020
3f170dd
[API 2.0] Fix example code of api 'switch_case' and add/delete alias …
liym27 Sep 27, 2020
1501a80
add support to float64 input of warpctc op. (#27399)
Sep 27, 2020
96daa25
Fix padding in conv1d op (#27590)
wanghaoshuang Sep 27, 2020
6e41143
remove paddle.metrics.cos_sim api (#27569)
littletomatodonkey Sep 27, 2020
d1c2a3b
disable ut test_warpctc_op,test=document_fix (#27632)
XieYunshen Sep 27, 2020
9d783ae
Error message opt, test=develop (#27467)
LDOUBLEV Sep 27, 2020
d01f626
update mv op according PR#27024 (#27474)
windstamp Sep 27, 2020
4e8f18a
Get final strategy (#27602)
guru4elephant Sep 27, 2020
7c51624
[API 2.0]Migrate api example for gradients/append_backward/program_gu…
Aurelius84 Sep 28, 2020
68df20d
fix pad2d example code (#27615)
littletomatodonkey Sep 28, 2020
5641ea2
Remove optimizer which in fleet, test=develop (#27606)
wangxicoding Sep 28, 2020
bf99bc4
update name_scope example code (#27594)
luotao1 Sep 28, 2020
fa73e4a
Initialize gloo for low level collective apis (#27356)
Sep 28, 2020
5218b7a
add ncclSend and ncclRecv (#27621)
Sep 28, 2020
074a71b
Support assignment to a Variable in dynamic mode but not deal with ba…
liym27 Sep 28, 2020
9cc5603
Make grid support stopping graients. (#27630)
wanghaoshuang Sep 28, 2020
c9a8801
enhance error messages of lookup_tale, merge_ids, data_norm (#27619)
yaoxuefeng6 Sep 28, 2020
516d84b
fix tests warpctc (#27639)
Sep 28, 2020
c68a031
add paddle.fluid._cuda_synchronize (#27595)
wanghuancoder Sep 28, 2020
9704582
fix op error (#27599)
seiriosPlus Sep 28, 2020
6822307
test=develop, rm netifaces (#27581)
123malin Sep 28, 2020
ae6e40a
Add unittests and OP version registry for tensorrt_subgraph_pass (#27…
cryoco Sep 28, 2020
e8f873d
optimize the speed&memory of matmul op (#27610)
ForFishes Sep 28, 2020
aed0080
Remove NLTK requirements to avoid dependency security alert from Gith…
ZeyuChen Sep 28, 2020
99e3337
Optimize the error message of OP. (#27478)
xiemoyuan Sep 28, 2020
36c0410
Revert "Initialize gloo for low level collective apis (#27356)", test…
Sep 28, 2020
eb37ee2
modify docs of program API, test=document_fix (#27600)
zhangting2020 Sep 28, 2020
aac5715
enhance array_to_lod_tensor_op lod_tensor_to_array_op errors informai…
yongqiangma Sep 28, 2020
7801405
【paddle.distributed.fleet】add data_generator in distributed.fleet.dat…
yaoxuefeng6 Sep 28, 2020
2f9cdd9
API/OP clip_by_norm_op error message enhancement. test=develop (#27614)
ysh329 Sep 28, 2020
a4c25b2
use paddle.is_compile_with_cuda (#27586)
zhangting2020 Sep 28, 2020
5e4f01f
modified sample code of add_position_encoding to 2.0 (#27561)
Sep 28, 2020
e1f8617
bugfix: RNN does not initialize the state for the cell correctly (#27…
Sep 28, 2020
0873644
Remove alias for `l2_normalize` (#27616)
willthefrog Sep 28, 2020
26b6169
Refine initializer to support not passing block in dygraph mode (#27612)
zhiqiu Sep 28, 2020
c7e0a8b
Remove inplace argument when calling nn.reshape() (#27376)
zhiqiu Sep 28, 2020
07b01b0
[doc] Change docs of WeightNormParamAttr to dygraph model (#27571)
juncaipeng Sep 28, 2020
2bc70ab
Fix lite_resnet50 unit test. (#27611)
jiweibo Sep 28, 2020
1539a23
Fix bugs in hdfs download (#27344)
qjing666 Sep 28, 2020
c29aa8c
fix reshape doc, remove reverse api (#27592)
mapingshuo Sep 28, 2020
e7b476c
disable ut test_parallel_executor_fetch_isolated_var,test=document_fi…
XieYunshen Sep 28, 2020
0ecf441
Add support for mkldnn ops types selection with FLAGS in dygraph (#27…
arlesniak Sep 28, 2020
ca28920
Add label smooth to functional package (#27642)
wanghaoshuang Sep 28, 2020
3ccee08
numpy -> paddle in conv & conv_transpose (#27669)
heavengate Sep 28, 2020
daf5aa9
Fix round in grid sample op (#27657)
wanghaoshuang Sep 28, 2020
29f4922
optimize the error meesage for detetion_map_op
wawltor Sep 29, 2020
ee13a2a
Add transformer generate square subsequent mask api (#27651)
LiuChiachi Sep 29, 2020
6ad7210
[API 2.0] Fix api 'is_empty' (#27593)
danleifeng Sep 29, 2020
b7107c6
[Dy2stat] Fix test_yolov3 to Run Correctly on Win/Mac (#27666)
zhhsplendid Sep 29, 2020
bbc2add
Initialize gloo for low level collective apis (#27672)
Sep 29, 2020
c3a3df6
Add cuda support for unique op (#27646)
AshburnLee Sep 29, 2020
b7b1ae8
update mv op docs (#27559)
windstamp Sep 29, 2020
abb32bb
[Dy2stat] Fix lstm bug (#27631)
zhhsplendid Sep 29, 2020
6871e57
fix in_dynamic_mode of paddle,test=document_fix (#27671)
zhwesky2010 Sep 29, 2020
6363a33
add paddle.enable_static() && random.seed(xx) to test_activation_op (…
shangzhizhou Sep 29, 2020
3baf561
reduce epoch (#27661)
MRXLT Sep 29, 2020
cc2fc93
[Dy2stat] Refine Dy2stat APIs to 2.0rc (#27430)
zhhsplendid Sep 29, 2020
b14ecb8
Polish api BuildStrategy/ExecutionStrategy doc & code example (#27662)
chenwhql Sep 29, 2020
199da96
Polish api Program/CompiledProgram/ParallelEnv doc & code example (#2…
chenwhql Sep 29, 2020
6d9ae66
delete ExponentialMovingAverage in paddle/optimizer (#27683)
yaoxuefeng6 Sep 29, 2020
7b46fb0
fix generate_proposals and affine grid error info (#27636)
yukavio Sep 29, 2020
dec53a9
Remove DataParallel.scale_loss & apply_collective_grads (#27603)
chenwhql Sep 29, 2020
8a4f85f
Add unittests and OP version registry for quant_conv2d_dequant_fuse_p…
cryoco Sep 29, 2020
5132f51
terminate http server used by gloo for fleet after init (#27698)
Sep 29, 2020
cc780b1
test=develop, optimize geo communicator (#26857)
123malin Sep 29, 2020
8da2b16
fix reg (#27647)
littletomatodonkey Sep 29, 2020
42d1753
Add support for (de/re)quantization with shift (#27481)
Sep 29, 2020
29d5937
fix batch_norm doublegrad, test=develop (#27703)
ceci3 Sep 29, 2020
90eb554
fix the precision problem of test_distribution (#27524)
pangyoki Sep 29, 2020
cefb49a
fix docs (#27637)
yaoxuefeng6 Sep 29, 2020
719309a
add note of large offset of trace test=document_fix (#27693)
yaoxuefeng6 Sep 29, 2020
5380320
add rename var in block (#27705)
chenwhql Sep 29, 2020
7c69e36
add pip new requirements to windows (#27697)
iducn Sep 29, 2020
d2369dd
modify docs of CPUPlace and CUDAPinnedPlace, test=document_fix (#27587)
zhangting2020 Sep 29, 2020
7cd2c13
add multinomial op (#27219)
pangyoki Sep 29, 2020
b77d9f2
migrate code example and doc (#27627)
baiyfbupt Sep 29, 2020
28f83f0
[Dy2stat] Add Ptb Lm Test for V2 APIs (#27461)
zhhsplendid Sep 29, 2020
e262cb6
fix the scatternd/scatterndadd (#27634)
ForFishes Sep 30, 2020
4d79304
update samples of print and clip api, test=develop (#27670)
qili93 Sep 30, 2020
8d68dd4
Fix test_se_resnet unittest (#27715)
OliverLPH Sep 30, 2020
295e87e
fix dice_loss, log_loss doc and example code test=document_fix (#27702)
lijianshe02 Sep 30, 2020
20fb01f
fix distributed error info (#27206)
MRXLT Sep 30, 2020
3a8bef1
[Dynamic-to-Static] Refine 2.0rc assign: paddle.nn.functional.assign …
liym27 Sep 30, 2020
d15cbe7
Remove Input requirement in dygraph for Model (#27557)
LiuChiachi Sep 30, 2020
4d5ddbf
add xpu test (#27622)
tianshuo78520a Sep 30, 2020
f373269
update histogram op for performance optimization, test=develop (#24912)
qili93 Sep 30, 2020
fd616fa
repen heartbeat ut (#27684)
seiriosPlus Sep 30, 2020
a12071a
add type check for initializer and regularizer in ParamAttr (#27720)
hutuxian Sep 30, 2020
742cbe6
[bug fix] avoiding multiple initialization of gloo for fleet in dygra…
Sep 30, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 22 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,29 @@ if(WIN32)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /bigobj /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj /MTd")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /bigobj /MT")
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif()
endforeach(flag_var)
endif()


# windows build turn off warnings.
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
string(REGEX REPLACE "/W[1-4]" " /W0 " ${flag_var} "${${flag_var}}")
endforeach(flag_var)
foreach(flag_var CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
set(${flag_var} "${${flag_var}} /w")
endforeach(flag_var)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4068 /wd4129 /wd4244 /wd4267 /wd4297 /wd4530 /wd4577 /wd4819 /wd4838 /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4068 /wd4129 /wd4244 /wd4267 /wd4297 /wd4530 /wd4577 /wd4819 /wd4838 /MP")
message(STATUS "Using parallel compiling (/MP)")
Expand Down
3 changes: 3 additions & 0 deletions cmake/cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ function(select_nvcc_arch_flags out_variable)
elseif(${CUDA_ARCH_NAME} STREQUAL "Maxwell")
set(cuda_arch_bin "50")
elseif(${CUDA_ARCH_NAME} STREQUAL "Pascal")
if (NOT ${CMAKE_CUDA_COMPILER_VERSION} LESS 10.0)
add_definitions("-DSUPPORTS_CUDA_FP16")
endif()
set(cuda_arch_bin "60 61")
elseif(${CUDA_ARCH_NAME} STREQUAL "Volta")
if (NOT ${CMAKE_CUDA_COMPILER_VERSION} LESS 10.0)
Expand Down
17 changes: 1 addition & 16 deletions cmake/external/cryptopp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,8 @@ SET(CRYPTOPP_TAG CRYPTOPP_8_2_0)

IF(WIN32)
SET(CRYPTOPP_LIBRARIES "${CRYPTOPP_INSTALL_DIR}/lib/cryptopp-static.lib" CACHE FILEPATH "cryptopp library." FORCE)
SET(CRYPTOPP_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
set(CompilerFlags
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
)
foreach(CompilerFlag ${CompilerFlags})
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach()
ELSE(WIN32)
SET(CRYPTOPP_LIBRARIES "${CRYPTOPP_INSTALL_DIR}/lib/libcryptopp.a" CACHE FILEPATH "cryptopp library." FORCE)
SET(CRYPTOPP_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
ENDIF(WIN32)

set(CRYPTOPP_CMAKE_ARGS ${COMMON_CMAKE_ARGS}
Expand All @@ -48,7 +33,7 @@ set(CRYPTOPP_CMAKE_ARGS ${COMMON_CMAKE_ARGS}
-DCMAKE_INSTALL_LIBDIR=${CRYPTOPP_INSTALL_DIR}/lib
-DCMAKE_INSTALL_PREFIX=${CRYPTOPP_INSTALL_DIR}
-DCMAKE_BUILD_TYPE=${THIRD_PARTY_BUILD_TYPE}
-DCMAKE_CXX_FLAGS=${CRYPTOPP_CMAKE_CXX_FLAGS}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
Expand Down
5 changes: 3 additions & 2 deletions cmake/external/warpctc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SET(WARPCTC_PREFIX_DIR ${THIRD_PARTY_PATH}/warpctc)
SET(WARPCTC_SOURCE_DIR ${THIRD_PARTY_PATH}/warpctc/src/extern_warpctc)
SET(WARPCTC_INSTALL_DIR ${THIRD_PARTY_PATH}/install/warpctc)
set(WARPCTC_REPOSITORY https://github.com/baidu-research/warp-ctc.git)
set(WARPCTC_TAG fc7f226b93758216a03b1be9d24593a12819b984)
set(WARPCTC_TAG 95a461eddeabd51099ef059dcfada1117eb1bfb8)

SET(WARPCTC_INCLUDE_DIR "${WARPCTC_INSTALL_DIR}/include"
CACHE PATH "Warp-ctc Directory" FORCE)
Expand All @@ -44,8 +44,9 @@ ExternalProject_Add(
"${WARPCTC_DOWNLOAD_CMD}"
PREFIX ${WARPCTC_PREFIX_DIR}
SOURCE_DIR ${WARPCTC_SOURCE_DIR}
UPDATE_COMMAND ""
#UPDATE_COMMAND ""
PATCH_COMMAND ""
BUILD_ALWAYS 1
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
Expand Down
2 changes: 1 addition & 1 deletion cmake/external/xpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ endif()

INCLUDE(ExternalProject)
SET(XPU_PROJECT "extern_xpu")
SET(XPU_URL "https://kunlun1.su.bcebos.com/xpu.tar.gz" CACHE STRING "" FORCE)
SET(XPU_URL "https://baidu-kunlun-public.su.bcebos.com/paddle_depence/xpu.tar.gz" CACHE STRING "" FORCE)
SET(XPU_SOURCE_DIR "${THIRD_PARTY_PATH}/xpu")
SET(XPU_DOWNLOAD_DIR "${XPU_SOURCE_DIR}/src/${XPU_PROJECT}")
SET(XPU_INSTALL_DIR "${THIRD_PARTY_PATH}/install/xpu")
Expand Down
31 changes: 0 additions & 31 deletions cmake/flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ macro(safe_set_nvflag flag_name)
endif()
endmacro()

macro(safe_set_static_flag) # set c_flags and cxx_flags to static or shared
if (BUILD_SHARED_LIBS)
return() # if build shared libs, the flags keep same with '/MD'
endif(BUILD_SHARED_LIBS)
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif(${flag_var} MATCHES "/MD")
endforeach(flag_var)
endmacro()

CHECK_CXX_SYMBOL_EXISTS(UINT64_MAX "stdint.h" UINT64_MAX_EXISTS)
if(NOT UINT64_MAX_EXISTS)
Expand Down Expand Up @@ -229,20 +215,3 @@ endforeach()

set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} ${SAFE_GPU_COMMON_FLAGS}")


if(WIN32)
# windows build turn off warnings.
if(MSVC_STATIC_CRT)
safe_set_static_flag()
endif()
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
string(REGEX REPLACE "/W[1-4]" " /W0 " ${flag_var} "${${flag_var}}")
endforeach(flag_var)
foreach(flag_var CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
set(${flag_var} "${${flag_var}} /w")
endforeach(flag_var)
endif()
10 changes: 10 additions & 0 deletions cmake/generic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ function(nv_library TARGET_NAME)
message(FATAL "Please specify source file or library in nv_library.")
endif()
endif(nv_library_SRCS)
if (WIN32)
set_target_properties(${TARGET_NAME} PROPERTIES VS_USER_PROPS ${WIN_PROPS})
endif(WIN32)
endif()
endfunction(nv_library)

Expand All @@ -461,6 +464,9 @@ function(nv_binary TARGET_NAME)
add_dependencies(${TARGET_NAME} ${nv_binary_DEPS})
common_link(${TARGET_NAME})
endif()
if (WIN32)
set_target_properties(${TARGET_NAME} PROPERTIES VS_USER_PROPS ${WIN_PROPS})
endif(WIN32)
endif()
endfunction(nv_binary)

Expand All @@ -482,6 +488,9 @@ function(nv_test TARGET_NAME)
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_cpu_deterministic=true)
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_init_allocated_mem=true)
set_property(TEST ${TARGET_NAME} PROPERTY ENVIRONMENT FLAGS_cudnn_deterministic=true)
if (WIN32)
set_target_properties(${TARGET_NAME} PROPERTIES VS_USER_PROPS ${WIN_PROPS})
endif(WIN32)
endif()
endfunction(nv_test)

Expand Down Expand Up @@ -712,6 +721,7 @@ function(proto_library TARGET_NAME)
set(proto_hdrs)
paddle_protobuf_generate_cpp(proto_srcs proto_hdrs ${proto_library_SRCS})
cc_library(${TARGET_NAME} SRCS ${proto_srcs} DEPS ${proto_library_DEPS} protobuf)
add_dependencies(extern_xxhash ${TARGET_NAME})
endfunction()

function(py_proto_compile TARGET_NAME)
Expand Down
88 changes: 44 additions & 44 deletions cmake/inference_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@
# limitations under the License.

# make package for paddle fluid shared and static library
set(FLUID_INSTALL_DIR "${CMAKE_BINARY_DIR}/fluid_install_dir" CACHE STRING
"A path setting fluid shared and static libraries")
set(PADDLE_INSTALL_DIR "${CMAKE_BINARY_DIR}/paddle_install_dir" CACHE STRING
"A path setting paddle shared and static libraries")

set(FLUID_INFERENCE_INSTALL_DIR "${CMAKE_BINARY_DIR}/fluid_inference_install_dir" CACHE STRING
"A path setting fluid inference shared and static libraries")
set(PADDLE_INFERENCE_INSTALL_DIR "${CMAKE_BINARY_DIR}/paddle_inference_install_dir" CACHE STRING
"A path setting paddle inference shared and static libraries")

# TODO(zhaolong)
# At present, the size of static lib in Windows exceeds the system limit,
# so the generation of static lib is temporarily turned off.
# At present, the size of static lib in Windows is very large,
# so we need to crop the library size.
if(WIN32)
#todo: remove the option
option(WITH_STATIC_LIB "Compile demo with static/shared library, default use static." OFF)
option(WITH_STATIC_LIB "Compile demo with static/shared library, default use dynamic." OFF)
if(NOT PYTHON_EXECUTABLE)
FIND_PACKAGE(PythonInterp REQUIRED)
endif()
Expand Down Expand Up @@ -142,14 +141,14 @@ set(inference_lib_deps third_party paddle_fluid paddle_fluid_c paddle_fluid_shar
add_custom_target(inference_lib_dist DEPENDS ${inference_lib_deps})


set(dst_dir "${FLUID_INFERENCE_INSTALL_DIR}/third_party/threadpool")
set(dst_dir "${PADDLE_INFERENCE_INSTALL_DIR}/third_party/threadpool")
copy(inference_lib_dist
SRCS ${THREADPOOL_INCLUDE_DIR}/ThreadPool.h
DSTS ${dst_dir})

# Only GPU need cudaErrorMessage.pb
IF(WITH_GPU)
set(dst_dir "${FLUID_INFERENCE_INSTALL_DIR}/third_party/cudaerror/data")
set(dst_dir "${PADDLE_INFERENCE_INSTALL_DIR}/third_party/cudaerror/data")
copy(inference_lib_dist
SRCS ${cudaerror_INCLUDE_DIR}
DSTS ${dst_dir})
Expand All @@ -158,65 +157,66 @@ ENDIF()
# CMakeCache Info
copy(inference_lib_dist
SRCS ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt
DSTS ${FLUID_INFERENCE_INSTALL_DIR})
DSTS ${PADDLE_INFERENCE_INSTALL_DIR})

copy_part_of_thrid_party(inference_lib_dist ${FLUID_INFERENCE_INSTALL_DIR})
copy_part_of_thrid_party(inference_lib_dist ${PADDLE_INFERENCE_INSTALL_DIR})

set(src_dir "${PADDLE_SOURCE_DIR}/paddle/fluid")
if(WIN32)
if(WITH_STATIC_LIB)
set(paddle_fluid_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/libpaddle_fluid.lib)
set(paddle_fluid_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/libpaddle_fluid.lib
${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/paddle_fluid.*)
else()
set(paddle_fluid_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/paddle_fluid.dll
${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/paddle_fluid.lib)
${PADDLE_BINARY_DIR}/paddle/fluid/inference/${CMAKE_BUILD_TYPE}/paddle_fluid.lib)
endif()
copy(inference_lib_dist
SRCS ${src_dir}/inference/api/paddle_*.h ${paddle_fluid_lib}
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib
${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib)
else(WIN32)
set(paddle_fluid_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/libpaddle_fluid.*)
endif(WIN32)

if(WIN32 AND NOT WITH_STATIC_LIB)
copy(inference_lib_dist
copy(inference_lib_dist
SRCS ${src_dir}/inference/api/paddle_*.h ${paddle_fluid_lib}
DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include ${FLUID_INFERENCE_INSTALL_DIR}/paddle/lib
${FLUID_INFERENCE_INSTALL_DIR}/paddle/lib)
else()
copy(inference_lib_dist
SRCS ${src_dir}/inference/api/paddle_*.h ${paddle_fluid_lib}
DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include ${FLUID_INFERENCE_INSTALL_DIR}/paddle/lib)
endif()
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib)
endif(WIN32)

copy(inference_lib_dist
SRCS ${CMAKE_BINARY_DIR}/paddle/fluid/framework/framework.pb.h
DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include/internal)
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/internal)
copy(inference_lib_dist
SRCS ${PADDLE_SOURCE_DIR}/paddle/fluid/framework/io/crypto/cipher.h
DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include/crypto/)
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/crypto/)
include_directories(${CMAKE_BINARY_DIR}/../paddle/fluid/framework/io)

# CAPI inference library for only inference
set(FLUID_INFERENCE_C_INSTALL_DIR "${CMAKE_BINARY_DIR}/fluid_inference_c_install_dir" CACHE STRING
"A path setting CAPI fluid inference shared")
copy_part_of_thrid_party(inference_lib_dist ${FLUID_INFERENCE_C_INSTALL_DIR})
set(PADDLE_INFERENCE_C_INSTALL_DIR "${CMAKE_BINARY_DIR}/paddle_inference_c_install_dir" CACHE STRING
"A path setting CAPI paddle inference shared")
copy_part_of_thrid_party(inference_lib_dist ${PADDLE_INFERENCE_C_INSTALL_DIR})

set(src_dir "${PADDLE_SOURCE_DIR}/paddle/fluid")
set(paddle_fluid_c_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/capi/libpaddle_fluid_c.*)
if(WIN32)
set(paddle_fluid_c_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/capi/${CMAKE_BUILD_TYPE}/paddle_fluid_c.*)
else(WIN32)
set(paddle_fluid_c_lib ${PADDLE_BINARY_DIR}/paddle/fluid/inference/capi/libpaddle_fluid_c.*)
endif(WIN32)

copy(inference_lib_dist
SRCS ${src_dir}/inference/capi/paddle_c_api.h ${paddle_fluid_c_lib}
DSTS ${FLUID_INFERENCE_C_INSTALL_DIR}/paddle/include ${FLUID_INFERENCE_C_INSTALL_DIR}/paddle/lib)
DSTS ${PADDLE_INFERENCE_C_INSTALL_DIR}/paddle/include ${PADDLE_INFERENCE_C_INSTALL_DIR}/paddle/lib)

# fluid library for both train and inference
set(fluid_lib_deps inference_lib_dist)
add_custom_target(fluid_lib_dist ALL DEPENDS ${fluid_lib_deps})

set(dst_dir "${FLUID_INSTALL_DIR}/paddle/fluid")
set(dst_dir "${PADDLE_INSTALL_DIR}/paddle/fluid")
set(module "inference")
if(WIN32 AND NOT WITH_STATIC_LIB)
if(WIN32)
copy(fluid_lib_dist
SRCS ${src_dir}/${module}/*.h ${src_dir}/${module}/api/paddle_*.h ${paddle_fluid_lib}
DSTS ${dst_dir}/${module} ${dst_dir}/${module} ${dst_dir}/${module} ${dst_dir}/${module}
)
else()
else()
copy(fluid_lib_dist
SRCS ${src_dir}/${module}/*.h ${src_dir}/${module}/api/paddle_*.h ${paddle_fluid_lib}
DSTS ${dst_dir}/${module} ${dst_dir}/${module} ${dst_dir}/${module}
Expand Down Expand Up @@ -273,31 +273,31 @@ copy(fluid_lib_dist
DSTS ${dst_dir}/${module}
)

set(dst_dir "${FLUID_INSTALL_DIR}/third_party/eigen3")
set(dst_dir "${PADDLE_INSTALL_DIR}/third_party/eigen3")
copy(inference_lib_dist
SRCS ${EIGEN_INCLUDE_DIR}/Eigen/Core ${EIGEN_INCLUDE_DIR}/Eigen/src ${EIGEN_INCLUDE_DIR}/unsupported/Eigen
DSTS ${dst_dir}/Eigen ${dst_dir}/Eigen ${dst_dir}/unsupported)

set(dst_dir "${FLUID_INSTALL_DIR}/third_party/boost")
set(dst_dir "${PADDLE_INSTALL_DIR}/third_party/boost")
copy(inference_lib_dist
SRCS ${BOOST_INCLUDE_DIR}/boost
DSTS ${dst_dir})

set(dst_dir "${FLUID_INSTALL_DIR}/third_party/dlpack")
set(dst_dir "${PADDLE_INSTALL_DIR}/third_party/dlpack")
copy(inference_lib_dist
SRCS ${DLPACK_INCLUDE_DIR}/dlpack
DSTS ${dst_dir})

set(dst_dir "${FLUID_INSTALL_DIR}/third_party/install/zlib")
set(dst_dir "${PADDLE_INSTALL_DIR}/third_party/install/zlib")
copy(inference_lib_dist
SRCS ${ZLIB_INCLUDE_DIR} ${ZLIB_LIBRARIES}
DSTS ${dst_dir} ${dst_dir}/lib)


# CMakeCache Info
copy(fluid_lib_dist
SRCS ${FLUID_INFERENCE_INSTALL_DIR}/third_party ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt
DSTS ${FLUID_INSTALL_DIR} ${FLUID_INSTALL_DIR}
SRCS ${PADDLE_INFERENCE_INSTALL_DIR}/third_party ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt
DSTS ${PADDLE_INSTALL_DIR} ${PADDLE_INSTALL_DIR}
)

# paddle fluid version
Expand All @@ -323,6 +323,6 @@ function(version version_file)
endif()

endfunction()
version(${FLUID_INSTALL_DIR}/version.txt)
version(${FLUID_INFERENCE_INSTALL_DIR}/version.txt)
version(${FLUID_INFERENCE_C_INSTALL_DIR}/version.txt)
version(${PADDLE_INSTALL_DIR}/version.txt)
version(${PADDLE_INFERENCE_INSTALL_DIR}/version.txt)
version(${PADDLE_INFERENCE_C_INSTALL_DIR}/version.txt)
3 changes: 3 additions & 0 deletions cmake/init.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ if(WITH_GPU)
set(CMAKE_CUDA_FLAGS_MINSIZEREL "-O1 -DNDEBUG")
endif()

if(WIN32)
set(WIN_PROPS ${CMAKE_SOURCE_DIR}/cmake/paddle_win.props)
endif()

Loading