From e50caa38a1edc748c35bfacd6a9d77be5bd874c2 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Fri, 7 Apr 2017 13:44:35 +0200
Subject: [PATCH] Always include cublas before cublas_v2

---
 control/common.h                      | 1 +
 runtime/starpu/include/morse_starpu.h | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/control/common.h b/control/common.h
index f08f2712c..ab1a98867 100644
--- a/control/common.h
+++ b/control/common.h
@@ -54,6 +54,7 @@
 #include <cuda_runtime.h>
 #include <cuda_runtime_api.h>
 #if defined(CHAMELEON_USE_CUBLAS_V2)
+#include <cublas.h>
 #include <cublas_v2.h>
 #else
 #include <cublas.h>
diff --git a/runtime/starpu/include/morse_starpu.h b/runtime/starpu/include/morse_starpu.h
index a98c893e5..f0649aeaf 100644
--- a/runtime/starpu/include/morse_starpu.h
+++ b/runtime/starpu/include/morse_starpu.h
@@ -45,6 +45,13 @@
 #if defined(CHAMELEON_USE_CUDA) && !defined(CHAMELEON_SIMULATION)
 #include <starpu_scheduler.h>
 #include <starpu_cuda.h>
+
+#include <cublas.h>
+#include <starpu_cublas.h>
+#if defined(CHAMELEON_USE_CUBLAS_V2)
+#include <cublas_v2.h>
+#include <starpu_cublas_v2.h>
+#endif
 #endif
 
 #include "control/common.h"
-- 
GitLab