浏览代码

Define CUBLAS functions

Cédric Augonnet 14 年之前
父节点
当前提交
c0be233412
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/axpy/axpy.c

+ 4 - 1
examples/axpy/axpy.c

@@ -20,9 +20,12 @@
 #include <assert.h>
 #include <sys/time.h>
 
-
 #include <common/blas.h>
 
+#ifdef STARPU_USE_CUDA
+#include <cublas.h>
+#endif
+
 #define TYPE	float
 #define AXPY	SAXPY
 #define CUBLASAXPY	cublasSaxpy