Skip to content

Commit e72b865

Browse files
authored
Merge pull request #6530 from luotao1/atlas
remove ATLAS library
2 parents 0a8addf + e5dcefc commit e72b865

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Please refer to our [release announcement](https://github.com/PaddlePaddle/Paddl
3636
examples:
3737

3838
- Optimized math operations through SSE/AVX intrinsics, BLAS libraries
39-
(e.g. MKL, ATLAS, cuBLAS) or customized CPU/GPU kernels.
39+
(e.g. MKL, OpenBLAS, cuBLAS) or customized CPU/GPU kernels.
4040
- Highly optimized recurrent networks which can handle **variable-length**
4141
sequence without padding.
4242
- Optimized local and distributed training for models with high dimensional

cmake/cblas.cmake

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# It will search MKLML, atlas, OpenBlas, reference-cblas in order.
44
#
55
# If any cblas implementation found, the following variable will be set.
6-
# CBLAS_PROVIDER # one of MKLML, ATLAS, OPENBLAS, REFERENCE
6+
# CBLAS_PROVIDER # one of MKLML, OPENBLAS, REFERENCE
77
# CBLAS_INC_DIR # the include directory for cblas.
88
# CBLAS_LIBS # a list of libraries should be linked by paddle.
99
# # Each library should be full path to object file.
@@ -25,42 +25,6 @@ if(WITH_MKLML AND MKLML_INC_DIR AND MKLML_LIB)
2525
return()
2626
endif()
2727

28-
## Then find atlas.
29-
set(ATLAS_ROOT $ENV{ATLAS_ROOT} CACHE PATH "Folder contains Atlas")
30-
set(ATLAS_INCLUDE_SEARCH_PATHS
31-
${ATLAS_ROOT}/include
32-
/usr/include
33-
/usr/include/atlas)
34-
set(ATLAS_LIB_SEARCH_PATHS
35-
${ATLAS_ROOT}/lib
36-
/usr/lib
37-
/usr/lib/blas/atlas
38-
/usr/lib/atlas
39-
/usr/lib/atlas-base # special for ubuntu 14.04.
40-
)
41-
find_path(ATLAS_INC_DIR NAMES cblas.h
42-
PATHS ${ATLAS_INCLUDE_SEARCH_PATHS})
43-
find_path(ATLAS_CLAPACK_INC_DIR NAMES clapack.h
44-
PATHS ${ATLAS_INCLUDE_SEARCH_PATHS})
45-
find_library(ATLAS_CBLAS_LIB NAMES cblas libcblas.so.3
46-
PATHS ${ATLAS_LIB_SEARCH_PATHS})
47-
find_library(ATLAS_CLAPACK_LIB NAMES lapack_atlas liblapack_atlas.so.3
48-
PATHS ${ATLAS_LIB_SEARCH_PATHS})
49-
50-
if(ATLAS_CLAPACK_INC_DIR AND ATLAS_INC_DIR AND ATLAS_CBLAS_LIB AND ATLAS_CLAPACK_LIB)
51-
set(CBLAS_FOUND ON)
52-
set(CBLAS_PROVIDER ATLAS)
53-
set(CBLAS_INC_DIR ${ATLAS_INC_DIR} ${ATLAS_CLAPACK_INC_DIR})
54-
set(CBLAS_LIBRARIES ${ATLAS_CLAPACK_LIB} ${ATLAS_CBLAS_LIB})
55-
56-
add_definitions(-DPADDLE_USE_ATLAS)
57-
add_definitions(-DLAPACK_FOUND)
58-
59-
message(STATUS "Found ATLAS (include: ${ATLAS_INC_DIR}, library: ${CBLAS_LIBRARIES})")
60-
message(STATUS "Found lapack in ATLAS (include: ${ATLAS_CLAPACK_INC_DIR})")
61-
return()
62-
endif()
63-
6428
## Then find openblas.
6529
set(OPENBLAS_ROOT $ENV{OPENBLAS_ROOT} CACHE PATH "Folder contains Openblas")
6630
set(OPENBLAS_INCLUDE_SEARCH_PATHS

paddle/math/tests/test_matrixCompare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ TEST(Matrix, unary) {
244244
LOG(WARNING) << "This version of PaddlePaddle was not built with LAPACK"
245245
<< "support so we cannot test matrix inverse. To test "
246246
<< "matrix inverse, please install LAPACKE "
247-
<< "and MKL/Openblas/ATLAS, and re-build PaddlePaddle.";
247+
<< "and MKL/Openblas, and re-build PaddlePaddle.";
248248
#endif
249249
}
250250
}

0 commit comments

Comments
 (0)