Skip to content

Commit

Permalink
Misc updates (#665)
Browse files Browse the repository at this point in the history
* add back the getnumberofreactions function

* update cuda thread count to 512
  • Loading branch information
sjsprecious committed Sep 19, 2024
1 parent c4b5479 commit 16ad525
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/micm/cuda/util/cuda_param.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// To make the NormalizedError function works properly on GPU,
// make sure to choose the BLOCK_SIZE from [32, 64, 128, 256, 512, 1024]
const std::size_t BLOCK_SIZE = 32;
const std::size_t BLOCK_SIZE = 512;

/// This struct holds the (1) pointer to, and (2) size of
/// each constatnt data member from the class "ProcessSet";
Expand Down
5 changes: 5 additions & 0 deletions include/micm/solver/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ namespace micm
return state_parameters_.number_of_species_;
}

std::size_t GetNumberOfReactions() const
{
return state_parameters_.number_of_rate_constants_;
}

StatePolicy GetState() const
{
auto state = std::move(StatePolicy(state_parameters_));
Expand Down

0 comments on commit 16ad525

Please sign in to comment.