5 #ifndef _HEBench_Harness_DataGenerator_LogisticRegression_H_0596d40a3cce4b108a81595c50eb286d
6 #define _HEBench_Harness_DataGenerator_LogisticRegression_H_0596d40a3cce4b108a81595c50eb286d
10 #include "hebench/modules/general/include/nocopy.h"
11 #include "hebench/modules/logging/include/logging.h"
19 namespace TestHarness {
36 static std::uint64_t
fetchVectorSize(
const std::vector<hebench::APIBridge::WorkloadParam> &w_params);
44 const std::vector<hebench::APIBridge::WorkloadParam> &w_params)
const override;
60 typedef std::shared_ptr<DataLoader>
Ptr;
74 std::uint64_t vector_size,
75 std::uint64_t batch_size_input,
78 std::uint64_t vector_size,
79 std::uint64_t batch_size_input,
81 const std::string &dataset_filename);
86 void computeResult(std::vector<hebench::APIBridge::NativeDataBuffer *> &result,
87 const std::uint64_t *param_data_pack_indices,
94 std::uint64_t m_vector_size;
98 std::uint64_t vector_size,
99 std::uint64_t batch_size_input,
102 std::uint64_t expected_vector_size,
103 std::uint64_t max_batch_size_input,
105 const std::string &dataset_filename);
Specifies a benchmark configuration.
static hebench::APIBridge::WorkloadParamType::WorkloadParamType WorkloadParameterType[WorkloadParameterCount]
BenchmarkDescriptorCategory()=default
bool matchBenchmarkDescriptor(const hebench::APIBridge::BenchmarkDescriptor &bench_desc, const std::vector< hebench::APIBridge::WorkloadParam > &w_params) const override
Determines if the represented benchmark can perform the workload described by a specified HEBench ben...
~BenchmarkDescriptorCategory() override=default
static constexpr const char * BaseWorkloadName
void completeWorkloadDescription(WorkloadDescriptionOutput &output, const Engine &engine, const BenchmarkDescription::Backend &backend_desc, const BenchmarkDescription::Configuration &config) const override
Completes the description for the matched benchmark.
static constexpr std::uint64_t OpParameterCount
static constexpr std::uint64_t OpResultCount
static std::uint64_t fetchVectorSize(const std::vector< hebench::APIBridge::WorkloadParam > &w_params)
static constexpr std::uint64_t WorkloadParameterCount
static constexpr std::size_t Index_W
void computeResult(std::vector< hebench::APIBridge::NativeDataBuffer * > &result, const std::uint64_t *param_data_pack_indices, hebench::APIBridge::DataType data_type) override
Computes result of the operation on the input data given the of the input sample.
static constexpr std::size_t Index_b
std::shared_ptr< DataLoader > Ptr
static constexpr std::size_t Index_X
static DataLoader::Ptr create(PolynomialDegree polynomial_degree, std::uint64_t vector_size, std::uint64_t batch_size_input, hebench::APIBridge::DataType data_type)
Provides boilerplate implementation to common methods of interface IBenchmarkDescription and implemen...
Bundles values that need to be filled by a workload during completeWorkloadDescription().
WorkloadParamType
Defines the possible data types for a workload flexible parameter.
DataType
Defines data types for a workload.
Defines a benchmark test.
VectorSize LogisticRegression