Skip to content

Commit

Permalink
Qualify standard type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Sep 7, 2024
1 parent ab7266e commit b3f3de5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions benchmarks/splines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct DDimY : ddc::UniformPointSampling<Y>
} // namespace DDC_HIP_5_7_ANONYMOUS_NAMESPACE_WORKAROUND(SPLINES_CPP)

// Function to monitor GPU memory asynchronously
void monitorMemoryAsync(std::mutex& mutex, bool& monitorFlag, size_t& maxUsedMem)
void monitorMemoryAsync(std::mutex& mutex, bool& monitorFlag, std::size_t& maxUsedMem)
{
while (monitorFlag) {
std::this_thread::sleep_for(std::chrono::microseconds(10)); // Adjust the interval as needed
Expand Down Expand Up @@ -99,7 +99,7 @@ static void characteristics_advection_unitary(benchmark::State& state)
#else
std::size_t const initUsedMem = 0;
#endif
size_t maxUsedMem = initUsedMem;
std::size_t maxUsedMem = initUsedMem;

bool monitorFlag = true;
std::mutex mutex;
Expand Down
6 changes: 3 additions & 3 deletions examples/characteristics_advection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ int main(int argc, char** argv)
// End of the domain of interest in the X dimension
double const x_end = 1.;
// Number of discretization points in the X dimension
size_t const nb_x_points = 100;
std::size_t const nb_x_points = 100;
// Velocity along x dimension
double const vx = .2;
// Start of the domain of interest in the Y dimension
double const y_start = -1.;
// End of the domain of interest in the Y dimension
double const y_end = 1.;
// Number of discretization points in the Y dimension
size_t const nb_y_points = 100;
std::size_t const nb_y_points = 100;
// Simulated time at which to start simulation
double const start_time = 0.;
// Simulated time to reach as target of the simulation
double const end_time = 10.;
// Number of time-steps between outputs
ptrdiff_t const t_output_period = 10;
std::ptrdiff_t const t_output_period = 10;
// Maximum time-step
ddc::Coordinate<T> const max_dt {0.1};
//! [parameters]
Expand Down
6 changes: 3 additions & 3 deletions examples/heat_equation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,23 @@ int main(int argc, char** argv)
// End of the domain of interest in the X dimension
double const x_end = 1.;
// Number of discretization points in the X dimension
size_t const nb_x_points = 10;
std::size_t const nb_x_points = 10;
// Thermal diffusion coefficient
double const kx = .01;
// Start of the domain of interest in the Y dimension
double const y_start = -1.;
// End of the domain of interest in the Y dimension
double const y_end = 1.;
// Number of discretization points in the Y dimension
size_t const nb_y_points = 100;
std::size_t const nb_y_points = 100;
// Thermal diffusion coefficient
double const ky = .002;
// Simulated time at which to start simulation
double const start_time = 0.;
// Simulated time to reach as target of the simulation
double const end_time = 10.;
// Number of time-steps between outputs
ptrdiff_t const t_output_period = 10;
std::ptrdiff_t const t_output_period = 10;
//! [parameters]

//! [main-start]
Expand Down

0 comments on commit b3f3de5

Please sign in to comment.