MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
magmablas.h
Go to the documentation of this file.
1 /*
2  -- MAGMA (version 1.2.0) --
3  Univ. of Tennessee, Knoxville
4  Univ. of California, Berkeley
5  Univ. of Colorado, Denver
6  May 2012
7 */
8 
9 #ifndef _MAGMABLAS_
10 #define _MAGMABLAS_
11 
12 #include <cublas.h>
13 #include <cuda.h>
14 
15 typedef int magma_int_t;
16 typedef int magma_err_t;
17 typedef void* magma_devptr;
18 
19 // For now, make these compatible with old cublas v1 prototypes.
20 // In the future, we will redefine these data types and
21 // add queues (opencl queues, cublas handles).
22 typedef char magma_trans_t;
23 typedef char magma_side_t ;
24 typedef char magma_uplo_t ;
25 typedef char magma_diag_t ;
26 
27 typedef cudaStream_t magma_stream_t;
28 typedef cudaStream_t magma_queue_t;
29 typedef cudaEvent_t magma_event_t;
30 typedef int magma_device_t;
31 
32 #include "magmablas_z.h"
33 #include "magmablas_c.h"
34 #include "magmablas_d.h"
35 #include "magmablas_s.h"
36 #include "magmablas_zc.h"
37 #include "magmablas_ds.h"
38 
39 #if (GPUSHMEM < 200)
40  #define magmablas_zgemm cublasZgemm
41 #endif
42 #define magmablas_cgemm cublasCgemm
43 
48 extern cudaStream_t magma_stream;
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 cublasStatus_t magmablasSetKernelStream( cudaStream_t stream );
55 cublasStatus_t magmablasGetKernelStream( cudaStream_t *stream );
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif