File tree 15 files changed +143
-87
lines changed
15 files changed +143
-87
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ OPTION(WITH_LIBXSMM "Compile with libxsmm" OFF)
76
76
option (COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF )
77
77
option (WITH_PSLIB "Compile with pslib support" OFF )
78
78
option (WITH_BOX_PS "Compile with box_ps support" OFF )
79
+ option (WITH_XBYAK "Compile with xbyak support" ON )
79
80
option (WITH_CONTRIB "Compile the third-party contributation" OFF )
80
81
option (REPLACE_ENFORCE_GLOG "Replace PADDLE_ENFORCE with glog/CHECK for better debug." OFF )
81
82
option (WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE} )
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- #
15
14
16
- IF (NOT WITH_DISTRIBUTE)
17
- return ()
18
- ENDIF ()
15
+ # NOTE: c-ares is needed when linking with grpc.
19
16
20
17
include (ExternalProject)
21
18
22
- # NOTE: c-ares is needed when linking with grpc.
23
-
24
19
SET (CARES_SOURCES_DIR ${THIRD_PARTY_PATH} /cares)
25
20
SET (CARES_INSTALL_DIR ${THIRD_PARTY_PATH} /install /cares)
26
21
SET (CARES_INCLUDE_DIR "${CARES_INSTALL_DIR} /include/" CACHE PATH "cares include directory." FORCE)
Original file line number Diff line number Diff line change 1
- if (NOT WITH_GPU)
2
- return ()
3
- endif ()
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
4
14
5
15
include (ExternalProject)
6
16
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
include (ExternalProject)
2
16
3
17
set (DLPACK_SOURCE_DIR ${THIRD_PARTY_PATH} /dlpack)
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2017 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
INCLUDE (ExternalProject)
2
16
3
17
SET (EIGEN_SOURCE_DIR ${THIRD_PARTY_PATH} /eigen3)
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
1
+ # Copyright (c) 2017 PaddlePaddle Authors. All Rights Reserved.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
13
13
# limitations under the License.
14
14
#
15
15
16
- IF (NOT WITH_DISTRIBUTE)
17
- return ()
18
- ENDIF ()
19
-
20
16
include (ExternalProject)
21
17
22
18
SET (GRPC_SOURCES_DIR ${THIRD_PARTY_PATH} /grpc)
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- IF (NOT ${WITH_LIBMCT} )
16
- return ()
17
- ENDIF (NOT ${WITH_LIBMCT} )
18
-
19
- IF (WIN32 OR APPLE )
20
- MESSAGE (WARNING
21
- "Windows or Mac is not supported with LIBMCT in Paddle yet."
22
- "Force WITH_LIBMCT=OFF" )
23
- SET (WITH_LIBMCT OFF CACHE STRING "Disable LIBMCT package in Windows and MacOS" FORCE)
24
- return ()
25
- ENDIF ()
26
-
27
15
INCLUDE (ExternalProject)
28
16
29
17
SET (LIBMCT_PROJECT "extern_libmct" )
Original file line number Diff line number Diff line change @@ -100,9 +100,6 @@ if(WIN32)
100
100
SET (MKLDNN_SHARED_LIB ${MKLDNN_INSTALL_DIR} /bin/mkldnn.dll)
101
101
else (WIN32 )
102
102
SET (MKLDNN_SHARED_LIB ${MKLDNN_INSTALL_DIR} /libmkldnn.so.0)
103
- ADD_CUSTOM_COMMAND (OUTPUT ${MKLDNN_SHARED_LIB}
104
- COMMAND ${CMAKE_COMMAND} -E copy ${MKLDNN_LIB} ${MKLDNN_SHARED_LIB}
105
- DEPENDS mkldnn shared_mkldnn)
103
+ ADD_CUSTOM_COMMAND (TARGET ${MKLDNN_PROJECT} POST_BUILD
104
+ COMMAND ${CMAKE_COMMAND} -E copy ${MKLDNN_LIB} ${MKLDNN_SHARED_LIB} )
106
105
endif (WIN32 )
107
- ADD_CUSTOM_TARGET (mkldnn_shared_lib ALL DEPENDS ${MKLDNN_SHARED_LIB} )
108
- ADD_DEPENDENCIES (mkldnn_shared_lib ${MKLDNN_PROJECT} mkldnn)
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2017 PaddlePaddle Authors. All Rights Reserved.
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- IF (NOT ${WITH_PSLIB} )
16
- return ()
17
- ENDIF (NOT ${WITH_PSLIB} )
18
-
19
- IF (WIN32 OR APPLE )
20
- MESSAGE (WARNING
21
- "Windows or Mac is not supported with PSLIB in Paddle yet."
22
- "Force WITH_PSLIB=OFF" )
23
- SET (WITH_PSLIB OFF CACHE STRING "Disable PSLIB package in Windows and MacOS" FORCE)
24
- return ()
25
- ENDIF ()
26
-
27
15
INCLUDE (ExternalProject)
28
16
29
17
SET (PSLIB_PROJECT "extern_pslib" )
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2017 PaddlePaddle Authors. All Rights Reserved.
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- IF (NOT ${WITH_PSLIB_BRPC} )
16
- return ()
17
- ENDIF (NOT ${WITH_PSLIB_BRPC} )
18
-
19
- IF (WIN32 OR APPLE )
20
- MESSAGE (WARNING
21
- "Windows or Mac is not supported with PSLIB_BRPC in Paddle yet."
22
- "Force WITH_PSLIB_BRPC=OFF" )
23
- SET (WITH_PSLIB_BRPC OFF CACHE STRING "Disable PSLIB_BRPC package in Windows and MacOS" FORCE)
24
- return ()
25
- ENDIF ()
26
-
27
15
INCLUDE (ExternalProject)
28
16
29
17
SET (PSLIB_BRPC_PROJECT "extern_pslib_brpc" )
Original file line number Diff line number Diff line change 1
- if (NOT WITH_AMD_GPU)
2
- return ()
3
- endif ()
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
4
14
5
15
# rocprim is "ROCm Parallel Primitives" for short.
6
16
# It is a header-only library providing HIP and HC parallel primitives
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
INCLUDE (ExternalProject)
2
16
3
17
SET (THREADPOOL_SOURCE_DIR ${THIRD_PARTY_PATH} /threadpool)
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2017 PaddlePaddle Authors. All Rights Reserved.
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- set (WITH_XBYAK ON )
16
- if (WIN32 OR APPLE )
17
- SET (WITH_XBYAK OFF CACHE STRING "Disable XBYAK in Windows and MacOS" FORCE)
18
- return ()
19
- endif ()
20
-
21
15
include (ExternalProject)
22
16
23
17
set (XBYAK_PROJECT extern_xbyak)
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
INCLUDE (ExternalProject)
2
16
3
17
set (XXHASH_SOURCE_DIR ${THIRD_PARTY_PATH} /xxhash)
You can’t perform that action at this time.
0 commit comments