-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-format code using Clang-Format Co-authored-by: GitHub Actions <actions@github.com>
- Loading branch information
1 parent
12b01eb
commit eaa45d8
Showing
4 changed files
with
190 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
#ifndef CUDA_PARAM_HPP | ||
#define CUDA_PARAM_HPP | ||
//member data of class CUDAProcessSet grouped in struct passing to kernel driver function | ||
struct CUDAProcessSetParam{ | ||
const size_t* number_of_reactants; | ||
const size_t* reactant_ids; | ||
size_t reactant_ids_size; | ||
const size_t* number_of_products; | ||
const size_t* product_ids; | ||
size_t product_ids_size; | ||
const double* yields; | ||
size_t yields_size; | ||
const size_t* jacobian_flat_ids; | ||
size_t jacobian_flat_ids_size; | ||
}; | ||
//different matrix data grouped in struct passing to kernel driver function | ||
struct CUDAMatrixParam{ | ||
const double* rate_constants; | ||
const double* state_variables; | ||
double* forcing; | ||
size_t n_grids; | ||
size_t n_reactions; | ||
size_t n_species; | ||
}; | ||
//sparseMatrix data grouped in struct passing to kernel driver function | ||
struct CUDASparseMatrixParam{ | ||
double* jacobian; | ||
size_t jacobian_size; | ||
// member data of class CUDAProcessSet grouped in struct passing to kernel driver function | ||
struct CUDAProcessSetParam | ||
{ | ||
const size_t* number_of_reactants; | ||
const size_t* reactant_ids; | ||
size_t reactant_ids_size; | ||
const size_t* number_of_products; | ||
const size_t* product_ids; | ||
size_t product_ids_size; | ||
const double* yields; | ||
size_t yields_size; | ||
const size_t* jacobian_flat_ids; | ||
size_t jacobian_flat_ids_size; | ||
}; | ||
// different matrix data grouped in struct passing to kernel driver function | ||
struct CUDAMatrixParam | ||
{ | ||
const double* rate_constants; | ||
const double* state_variables; | ||
double* forcing; | ||
size_t n_grids; | ||
size_t n_reactions; | ||
size_t n_species; | ||
}; | ||
// sparseMatrix data grouped in struct passing to kernel driver function | ||
struct CUDASparseMatrixParam | ||
{ | ||
double* jacobian; | ||
size_t jacobian_size; | ||
}; | ||
#endif |
Oops, something went wrong.