1 | #ifndef _CUDAFUN_H_ |
---|
2 | #define _CUDAFUN_H_ |
---|
3 | #include <stdlib.h> |
---|
4 | |
---|
5 | void getDeviceInfo( int, int, const char* ); |
---|
6 | int selectDevice( int, int, const char* ); |
---|
7 | |
---|
8 | void setKernelDims( const int, const int ); |
---|
9 | void printKernelDims(); |
---|
10 | |
---|
11 | #ifdef TEXCACHE |
---|
12 | void bindTexRefToPtr(); |
---|
13 | void bindMemoryToTexCache( double*, int ); |
---|
14 | #endif |
---|
15 | |
---|
16 | void* allocDeviceMemory( size_t ); |
---|
17 | void* allocHostMemory( size_t ); |
---|
18 | void copyDeviceToHost( void*, void*, size_t ); |
---|
19 | void copyHostToDevice( void*, void*, size_t ); |
---|
20 | void freeDeviceMemory( void* ); |
---|
21 | void freeHostMemory( void* ); |
---|
22 | |
---|
23 | void dummy(); |
---|
24 | |
---|
25 | void _set_to_default( double*, double*, double*, size_t, double); |
---|
26 | double _compute_fluxes_central( int, double, double, double, double, |
---|
27 | long*, long*, double*, double*, double*, double*, |
---|
28 | long*, double*, double*, double*, double*, double*, |
---|
29 | double*, double*, double*, double *, double *, double*, |
---|
30 | int ); |
---|
31 | |
---|
32 | #endif |
---|
33 | |
---|