accelerInt  v0.1
Namespaces | Functions | Variables
solver_interface.cu File Reference

Interface implementation for GPU solvers to be called as a library. More...

#include "solver_interface.cuh"
Include dependency graph for solver_interface.cu:

Go to the source code of this file.

Namespaces

 genericcu
 

Functions

void genericcu::memcpy2D_in (double *dst, const int pitch_dst, double const *src, const int pitch_src, const int offset, const size_t width, const int height)
 A convienience method to copy memory between host pointers of different pitches, widths and heights. Enables easier use of CUDA's cudaMemcpy2D functions. More...
 
void genericcu::memcpy2D_out (double *dst, const int pitch_dst, double const *src, const int pitch_src, const int offset, const size_t width, const int height)
 A convienience method to copy memory between host pointers of different pitches, widths and heights. Enables easier use of CUDA's cudaMemcpy2D functions. More...
 
void genericcu::accelerInt_initialize (int NUM, int device)
 Initializes the solver. More...
 
void genericcu::accelerInt_integrate (const int NUM, const double t_start, const double t_end, const double stepsize, double *__restrict__ y_host, const double *__restrict__ var_host)
 integrate NUM odes from time t_start to time t_end, using stepsizes of stepsize More...
 
void genericcu::accelerInt_cleanup ()
 Cleans up the solver. More...
 

Variables

int genericcu::padded
 Padded # of ODEs to solve. More...
 
solver_memorygenericcu::host_solver
 The solver memory structs. More...
 
solver_memorygenericcu::device_solver
 
mechanism_memory * genericcu::host_mech
 The mechanism memory structs. More...
 
mechanism_memory * genericcu::device_mech
 
dim3 genericcu::dimBlock
 block and grid sizes More...
 
dim3 genericcu::dimGrid
 
int * genericcu::result_flag
 result flag More...
 
double * genericcu::y_temp
 temorary storage More...
 

Detailed Description

Interface implementation for GPU solvers to be called as a library.

Author
Nicholas Curtis
Date
03/09/2015

Contains initialization, integration and cleanup functions

Definition in file solver_interface.cu.