accelerInt  v0.1
gpu_memory.cuh
Go to the documentation of this file.
1 
7 #ifndef GPU_MEM_CUH
8 #define GPU_MEM_CUH
9 
10 #include "header.cuh"
11 
12 #ifdef GENERATE_DOCS
13 //put this in the van der Pol namespace for documentation
14 namespace van_der_pol_cu {
15 #endif
16 
26  double * y;
27  double * dy;
28  double * var;
29  double * jac;
30 };
31 
51 
52 #ifdef GENERATE_DOCS
53 }
54 #endif
int padded
Padded # of ODEs to solve.
double * dy
The global state vector arrays.
Definition: gpu_memory.cuh:27
void initialize_gpu_memory(int padded, mechanism_memory **h_mem, mechanism_memory **d_mem)
Initializes the host and device mechanism_memory structs. This is required in order to enable passing...
Definition: gpu_memory.cu:30
void free_gpu_memory(mechanism_memory **h_mem, mechanism_memory **d_mem)
Frees the host and device mechanism_memory structs.
Definition: gpu_memory.cu:47
An example header file that defines system size, memory functions and other required methods for inte...
This struct is used to store memory for the CUDA RHS and Jacobian evaluation. Along with the solver_m...
Definition: gpu_memory.cuh:25
double * jac
The global param array [Used for ].
Definition: gpu_memory.cuh:29
double * var
The global dydt vector arrays.
Definition: gpu_memory.cuh:28
size_t required_mechanism_size()
Calculates and returns the total memory size (in bytes) required by an individual thread for the mech...
Definition: gpu_memory.cu:15