Skip to content

Commit 99a99ec

Browse files
authored
"remove lapack" (#11966)
1 parent 4f55590 commit 99a99ec

File tree

4 files changed

+0
-45
lines changed

4 files changed

+0
-45
lines changed

paddle/fluid/operators/math/blas.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@
2323

2424
#ifdef PADDLE_USE_OPENBLAS
2525
#include <cblas.h>
26-
#ifdef LAPACK_FOUND
27-
#include <lapacke.h>
28-
#endif
29-
#endif
30-
31-
#ifndef LAPACK_FOUND
32-
extern "C" {
33-
#include <cblas.h> // NOLINT
34-
int LAPACKE_sgetrf(int matrix_layout, int m, int n, float* a, int lda,
35-
int* ipiv);
36-
int LAPACKE_dgetrf(int matrix_layout, int m, int n, double* a, int lda,
37-
int* ipiv);
38-
int LAPACKE_sgetri(int matrix_layout, int n, float* a, int lda,
39-
const int* ipiv);
40-
int LAPACKE_dgetri(int matrix_layout, int n, double* a, int lda,
41-
const int* ipiv);
42-
}
4326
#endif
4427

4528
namespace paddle {

paddle/fluid/operators/math/math_function.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ limitations under the License. */
1919

2020
#ifdef PADDLE_USE_OPENBLAS
2121
#include <cblas.h>
22-
#ifdef LAPACK_FOUND
23-
#include <lapacke.h>
24-
#endif
25-
#endif
26-
27-
#ifndef LAPACK_FOUND
28-
extern "C" {
29-
#include <cblas.h> // NOLINT
30-
int LAPACKE_sgetrf(int matrix_layout, int m, int n, float* a, int lda,
31-
int* ipiv);
32-
int LAPACKE_dgetrf(int matrix_layout, int m, int n, double* a, int lda,
33-
int* ipiv);
34-
int LAPACKE_sgetri(int matrix_layout, int n, float* a, int lda,
35-
const int* ipiv);
36-
int LAPACKE_dgetri(int matrix_layout, int n, double* a, int lda,
37-
const int* ipiv);
38-
}
3922
#endif
4023

4124
#include <cmath>

paddle/fluid/platform/dynload/dynamic_loader.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ DEFINE_string(cuda_dir, "",
3636

3737
DEFINE_string(warpctc_dir, "", "Specify path for loading libwarpctc.so.");
3838

39-
DEFINE_string(lapack_dir, "", "Specify path for loading liblapack.so.");
40-
4139
DEFINE_string(nccl_dir, "",
4240
"Specify path for loading nccl library, such as libcublas, "
4341
"libcurand. For instance, /usr/local/cuda/lib64. If default, "
@@ -189,14 +187,6 @@ void* GetWarpCTCDsoHandle() {
189187
#endif
190188
}
191189

192-
void* GetLapackDsoHandle() {
193-
#if defined(__APPLE__) || defined(__OSX__)
194-
return GetDsoHandleFromSearchPath(FLAGS_lapack_dir, "liblapacke.dylib");
195-
#else
196-
return GetDsoHandleFromSearchPath(FLAGS_lapack_dir, "liblapacke.so");
197-
#endif
198-
}
199-
200190
void* GetNCCLDsoHandle() {
201191
#if defined(__APPLE__) || defined(__OSX__)
202192
return GetDsoHandleFromSearchPath(FLAGS_nccl_dir, "libnccl.dylib");

paddle/fluid/platform/dynload/dynamic_loader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ void* GetCUDNNDsoHandle();
2323
void* GetCUPTIDsoHandle();
2424
void* GetCurandDsoHandle();
2525
void* GetWarpCTCDsoHandle();
26-
void* GetLapackDsoHandle();
2726
void* GetNCCLDsoHandle();
2827
void* GetTensorRtDsoHandle();
2928
void* GetMKLMLDsoHandle();

0 commit comments

Comments
 (0)