AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Performance.cpp File Reference

Performance report. (See Aqua::CalcServer::Reports::Performance for details) More...

#include <algorithm>
#include <iomanip>
#include "aquagpusph/AuxiliarMethods.hpp"
#include "aquagpusph/InputOutput/Logger.hpp"
#include "aquagpusph/CalcServer/CalcServer.hpp"
#include "Performance.hpp"
#include <nlohmann/json.hpp>
Include dependency graph for Performance.cpp:

Namespaces

namespace  Aqua
 Main AQUAgpusph namespace.
namespace  Aqua::CalcServer
 Calculation server name space.
namespace  Aqua::CalcServer::Reports
 Runtime outputs name space.

Typedefs

using json = nlohmann::json

Functions

static const std::vector< float > Aqua::CalcServer::Reports::time_mults ({ 1.0, 1.e-3, 1.e-6, 1.e-9, 1.e-9/60, 1.e-9/3600 })
 List of time format multipliers.
static const std::vector< std::string > Aqua::CalcServer::Reports::time_units ({ "ns", "μs", "ms", "s", "m", "h" })
 List of time units.
std::tuple< float, std::string > Aqua::CalcServer::Reports::reformat_nanosec (float t)
 Reformat the time in nanoseconds as the best possible alternative between nanoseconds, microseconds, milliseconds, seconds minutes or hours.
void CL_CALLBACK Aqua::CalcServer::Reports::performance_cb (cl_event event, cl_int event_command_status, void *user_data)
 Callback called when all the commands prior to Aqua::CalcServer::Performance are completed.

Detailed Description

Performance report. (See Aqua::CalcServer::Reports::Performance for details)

Typedef Documentation

◆ json

using json = nlohmann::json