Skip to content

Commit

Permalink
Fix the linking error for iOS simulator (architecture x86_64). (#6081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xreki authored Dec 1, 2017
1 parent 7480291 commit 57dc8de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions paddle/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ else()
endif()

if(MOBILE_INFERENCE)
list(REMOVE_ITEM MATH_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/SIMDFunctions.cpp)
# Remove sparse
list(REMOVE_ITEM MATH_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/CpuSparseMatrix.h
Expand Down
2 changes: 2 additions & 0 deletions paddle/math/SIMDFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ inline bool vec_check(size_t len) {
}

namespace internal {
#ifdef __SSE3__
void addToImpl(float* a, const float* b, size_t len);
void batchAddToImpl(float* a, const float* b[], int batch, size_t len);
void colMaxImpl(float* result, const float* data, int dim, int numSamples);
#endif
#ifdef __AVX__
void decayL1AvxImpl(float* dst, float* src, float lambda, size_t len);
void decayL1AvxImpl(
Expand Down

0 comments on commit 57dc8de

Please sign in to comment.