source: trunk/anuga_work/anuga_gpu/cudafun.h

Last change on this file was 8176, checked in by steve, 14 years ago

Moved and then moved back anuga_1d. Will have to get Paul Bryan to first
update the pipe flow directory

File size: 949 bytes
Line 
1#ifndef _CUDAFUN_H_
2#define _CUDAFUN_H_
3#include <stdlib.h>
4
5void getDeviceInfo( int, int, const char* );
6int  selectDevice( int, int, const char* );
7
8void setKernelDims( const int, const int );
9void printKernelDims(); 
10
11#ifdef TEXCACHE
12void bindTexRefToPtr();
13void bindMemoryToTexCache( double*, int );
14#endif
15
16void* allocDeviceMemory( size_t );
17void* allocHostMemory( size_t );
18void copyDeviceToHost( void*, void*, size_t );
19void copyHostToDevice( void*, void*, size_t );
20void freeDeviceMemory( void* );
21void freeHostMemory( void* );
22
23void dummy();
24
25void _set_to_default( double*, double*, double*, size_t, double);
26double _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
Note: See TracBrowser for help on using the repository browser.