mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
Start refactoring cusparse.h
This commit is contained in:
+2
-2
@@ -38,8 +38,6 @@
|
||||
#include <cuda_runtime.h>
|
||||
#include <cusparse_v2.h>
|
||||
#include "cintrf.h"
|
||||
#include "fcusparse.h"
|
||||
|
||||
|
||||
/* Double precision real */
|
||||
#define TYPE float complex
|
||||
@@ -97,4 +95,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
#include "fcusparse.h"
|
||||
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -38,8 +38,6 @@
|
||||
#include <cuda_runtime.h>
|
||||
#include <cusparse_v2.h>
|
||||
#include "cintrf.h"
|
||||
#include "fcusparse.h"
|
||||
|
||||
|
||||
/* Double precision real */
|
||||
#define TYPE double
|
||||
@@ -97,5 +95,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#include "fcusparse.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,4 +65,7 @@ cusparseHandle_t *getHandle();
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) */
|
||||
/* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE */
|
||||
/* POSSIBILITY OF SUCH DAMAGE. */
|
||||
|
||||
|
||||
typedef struct T_CSRGDeviceMat
|
||||
{
|
||||
#if CUDA_SHORT_VERSION <= 10
|
||||
@@ -129,7 +129,7 @@ int T_spsvHYBGDevice(T_Hmat *Matrix, TYPE alpha, void *deviceX,
|
||||
int T_HYBGHost2Device(T_Hmat *Matrix, int m, int n, int nz,
|
||||
int *irp, int *ja, TYPE *val);
|
||||
#endif
|
||||
|
||||
|
||||
int T_spmvCSRGDevice(T_Cmat *Matrix, TYPE alpha, void *deviceX,
|
||||
TYPE beta, void *deviceY)
|
||||
{
|
||||
|
||||
+2
-4
@@ -31,7 +31,6 @@
|
||||
#ifndef SCUSPARSE_
|
||||
#define SCUSPARSE_
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -39,8 +38,6 @@
|
||||
#include <cuda_runtime.h>
|
||||
#include <cusparse_v2.h>
|
||||
#include "cintrf.h"
|
||||
#include "fcusparse.h"
|
||||
|
||||
|
||||
/* Double precision real */
|
||||
#define TYPE float
|
||||
@@ -98,5 +95,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#include "fcusparse.h"
|
||||
|
||||
#endif
|
||||
|
||||
+2
-3
@@ -38,8 +38,6 @@
|
||||
#include <cuda_runtime.h>
|
||||
#include <cusparse_v2.h>
|
||||
#include "cintrf.h"
|
||||
#include "fcusparse.h"
|
||||
|
||||
|
||||
/* Double precision real */
|
||||
#define TYPE double complex
|
||||
@@ -97,5 +95,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#include "fcusparse.h"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user