File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 15
15
INCLUDE (cblas )
16
16
17
17
IF (NOT ${CBLAS_FOUND} )
18
+ MESSAGE (FATAL_ERROR "Please install OpenBlas, MKL or ATLAS." )
18
19
INCLUDE (ExternalProject )
19
20
20
21
SET (CBLAS_SOURCES_DIR ${CMAKE_CURRENT_SOURCE_DIR} /third_party/openblas )
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ function(link_paddle_exe TARGET_NAME)
121
121
endif ()
122
122
endif ()
123
123
124
- if (NOT WITH_DSO )
125
- target_link_libraries (${TARGET_NAME} ${WARPCTC_LIBRARIES} )
126
- endif ()
127
-
128
124
add_dependencies (${TARGET_NAME} ${external_project_dependencies} )
129
125
endfunction ()
130
126
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ void* warpctc_dso_handle = nullptr;
29
29
* false, you need to add the path of libwarp-ctc.so to
30
30
* the linked-libs of paddle or to LD_PRELOAD.
31
31
*/
32
- #ifdef PADDLE_USE_DSO
33
32
#define DYNAMIC_LOAD_WARPCTC_WRAP (__name ) \
34
33
struct DynLoad__ ##__name { \
35
34
template <typename ... Args> \
@@ -41,15 +40,6 @@ void* warpctc_dso_handle = nullptr;
41
40
return reinterpret_cast <warpctcFunc>(p_##_name)(args...); \
42
41
} \
43
42
} __name; // struct DynLoad__##__name
44
- #else
45
- #define DYNAMIC_LOAD_WARPCTC_WRAP (__name ) \
46
- struct DynLoad__ ##__name { \
47
- template <typename ... Args> \
48
- auto operator ()(Args... args) -> decltype(__name(args...)) { \
49
- return __name (args...); \
50
- } \
51
- } __name; // struct DynLoad__##__name
52
- #endif
53
43
54
44
// include all needed warp-ctc functions
55
45
DYNAMIC_LOAD_WARPCTC_WRAP (get_warpctc_version)
You can’t perform that action at this time.
0 commit comments