26 return mech_size *
sizeof(double);
int padded
Padded # of ODEs to solve.
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...
void free_gpu_memory(mechanism_memory **h_mem, mechanism_memory **d_mem)
Frees the host and device mechanism_memory structs.
#define cudaErrorCheck(ans)
This struct is used to store memory for the CUDA RHS and Jacobian evaluation. Along with the solver_m...
Headers for GPU memory initialization.
size_t required_mechanism_size()
Calculates and returns the total memory size (in bytes) required by an individual thread for the mech...