Browse Source

Fix build without MKL

Samuel Thibault 10 years ago
parent
commit
8457ee8f25
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/common/blas.c

+ 2 - 0
examples/common/blas.c

@@ -414,6 +414,7 @@ void STARPU_DSWAP(const int n, double *X, const int incX, double *Y, const int i
 	dswap_(&n, X, &incX, Y, &incY);
 	dswap_(&n, X, &incX, Y, &incY);
 }
 }
 
 
+#ifdef STARPU_MKL
 void STARPU_SPOTRF(const char*uplo, const int n, float *a, const int lda)
 void STARPU_SPOTRF(const char*uplo, const int n, float *a, const int lda)
 {
 {
 	int info = 0;
 	int info = 0;
@@ -425,6 +426,7 @@ void STARPU_DPOTRF(const char*uplo, const int n, double *a, const int lda)
 	int info = 0;
 	int info = 0;
 	dpotrf_(uplo, &n, a, &lda, &info);
 	dpotrf_(uplo, &n, a, &lda, &info);
 }
 }
+#endif
 
 
 #elif defined(STARPU_SIMGRID)
 #elif defined(STARPU_SIMGRID)
 inline void STARPU_SGEMM(char *transa, char *transb, int M, int N, int K, 
 inline void STARPU_SGEMM(char *transa, char *transb, int M, int N, int K,