Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Address CR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy authored and Pedro Larroy committed Dec 16, 2018
1 parent ad90cc4 commit 1e5df93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 8 additions & 4 deletions src/operator/c_lapack_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@

#include "c_lapack_api.h"

#if (MSHADOW_USE_MKL && MXNET_USE_LAPACK)
#elif MXNET_USE_LAPACK
#else
// Avoids a Compiler bug due to excessive inlining
#if ! MXNET_USE_LAPACK
// use pragma message instead of warning
#pragma message("Warning: lapack usage not enabled, linalg-operators will not be available." \
" Ensure that lapack library is installed and build with USE_LAPACK=1 to get lapack" \
" functionalities.")

// Define compilable stubs.
#define MXNET_LAPACK_CWRAPPER1(func, dtype) \
int MXNET_LAPACK_##func(int matrix_layout, char uplo, int n, dtype* a, int lda) { \
Expand Down Expand Up @@ -64,4 +68,4 @@

MXNET_LAPACK_CWRAPPER3(ssyevd, float)
MXNET_LAPACK_CWRAPPER3(dsyevd, double)
#endif // MSHADOW_USE_MKL == 0
#endif // MXNET_USE_LAPACK
7 changes: 1 addition & 6 deletions src/operator/c_lapack_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,7 @@ inline void flip(int m, int n, DType *b, int ldb, DType *a, int lda) {

#else

// use pragma message instead of warning
/*
#pragma message("Warning: lapack usage not enabled, linalg-operators will not be available." \
" Ensure that lapack library is installed and build with USE_LAPACK=1 to get lapack" \
" functionalities.")
*/


#define MXNET_LAPACK_ROW_MAJOR 101
#define MXNET_LAPACK_COL_MAJOR 102
Expand Down

0 comments on commit 1e5df93

Please sign in to comment.