diff --git a/cudablas/include/cudablas.h b/cudablas/include/cudablas.h
index f912f315c5fb75891fd0120b843c4226b1b4e901..d6c2004fe9bfa69e0b7ddb1fe9accb2f23f521e1 100644
--- a/cudablas/include/cudablas.h
+++ b/cudablas/include/cudablas.h
@@ -25,6 +25,8 @@
 #ifndef _CUDA_BLAS_H_
 #define _CUDA_BLAS_H_
 
+#include "include/chameleon_config.h"
+
 #if !defined(CHAMELEON_USE_CUDA)
 #error "This file should not be included"
 #endif
@@ -37,8 +39,6 @@
 #include <cuda.h>
 #include <cuComplex.h>
 
-#include "include/chameleon_config.h"
-
 #if defined(CHAMELEON_USE_CUBLAS_V2)
 
 #include <cublas_v2.h>