vendor/scs/linsys/gpu/gpu.h in scs-0.3.1 vs vendor/scs/linsys/gpu/gpu.h in scs-0.3.2
- old
+ new
@@ -1,14 +1,19 @@
-#ifndef SCSGPU_H_GUARD
-#define SCSGPU_H_GUARD
+#ifndef SCS_GPU_H_GUARD
+#define SCS_GPU_H_GUARD
#ifdef __cplusplus
extern "C" {
#endif
-#include <cublas_v2.h>
+/* TODO: Do we need this?
+
#include <cuda.h>
+
+*/
+
+#include <cublas_v2.h>
#include <cuda_runtime_api.h>
#include <cusparse.h>
#include "glbopts.h"
#include "linalg.h"
@@ -29,37 +34,29 @@
#if VERBOSITY == 0
#ifndef SFLOAT
#define CUBLAS(x) cublasD##x
#define CUBLASI(x) cublasId##x
-#define CUSPARSE(x) cusparseD##x
#else
#define CUBLAS(x) cublasS##x
#define CUBLASI(x) cublasIs##x
-#define CUSPARSE(x) cusparseS##x
#endif
#define CUSPARSE_GEN(x) cusparse##x
#else
#ifndef SFLOAT
#define CUBLAS(x) \
CUDA_CHECK_ERR; \
cublasD##x
#define CUBLASI(x) \
CUDA_CHECK_ERR; \
cublasId##x
-#define CUSPARSE(x) \
- CUDA_CHECK_ERR; \
- cusparseD##x
#else
#define CUBLAS(x) \
CUDA_CHECK_ERR; \
cublasS##x
#define CUBLASI(x) \
CUDA_CHECK_ERR; \
cublasIs##x
-#define CUSPARSE(x) \
- CUDA_CHECK_ERR; \
- cusparseS##x
#endif
#define CUSPARSE_GEN(x) \
CUDA_CHECK_ERR; \
cusparse##x
#endif