Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "task/include/task.hpp"

namespace orehov_n_jarvis_pass_seq {
namespace orehov_n_jarvis_pass {

struct Point {
double x;
Expand All @@ -27,4 +27,4 @@ using OutType = std::vector<Point>;
using TestType = int;
using BaseTask = ppc::task::Task<InType, OutType>;

} // namespace orehov_n_jarvis_pass_seq
} // namespace orehov_n_jarvis_pass
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <vector>

#include "orehov_n_jarvis_pass_seq/common/include/common.hpp"
#include "orehov_n_jarvis_pass/common/include/common.hpp"
#include "task/include/task.hpp"

namespace orehov_n_jarvis_pass_seq {
namespace orehov_n_jarvis_pass {

class OrehovNJarvisPassSEQ : public BaseTask {
public:
Expand All @@ -29,4 +29,4 @@ class OrehovNJarvisPassSEQ : public BaseTask {
std::vector<Point> input_;
};

} // namespace orehov_n_jarvis_pass_seq
} // namespace orehov_n_jarvis_pass
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "orehov_n_jarvis_pass_seq/seq/include/ops_seq.hpp"
#include "orehov_n_jarvis_pass/seq/include/ops_seq.hpp"

#include <cmath>
#include <set>
#include <vector>

#include "orehov_n_jarvis_pass_seq/common/include/common.hpp"
#include "orehov_n_jarvis_pass/common/include/common.hpp"

namespace orehov_n_jarvis_pass_seq {
namespace orehov_n_jarvis_pass {

OrehovNJarvisPassSEQ::OrehovNJarvisPassSEQ(const InType &in) {
SetTypeOfTask(GetStaticTypeOfTask());
Expand Down Expand Up @@ -88,4 +88,4 @@ bool OrehovNJarvisPassSEQ::PostProcessingImpl() {
return true;
}

} // namespace orehov_n_jarvis_pass_seq
} // namespace orehov_n_jarvis_pass
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#include <tuple>
#include <vector>

#include "orehov_n_jarvis_pass_seq/common/include/common.hpp"
#include "orehov_n_jarvis_pass_seq/seq/include/ops_seq.hpp"
#include "orehov_n_jarvis_pass/common/include/common.hpp"
#include "orehov_n_jarvis_pass/seq/include/ops_seq.hpp"
#include "util/include/func_test_util.hpp"
#include "util/include/util.hpp"

namespace orehov_n_jarvis_pass_seq {
namespace orehov_n_jarvis_pass {

class OrehovNJarvisPassSEQFuncTests : public ppc::util::BaseRunFuncTests<InType, OutType, TestType> {
class OrehovNJarvisPassFuncTests : public ppc::util::BaseRunFuncTests<InType, OutType, TestType> {
public:
static std::string PrintTestParam(const TestType &test_param) {
return std::to_string(test_param);
Expand Down Expand Up @@ -63,21 +63,21 @@ class OrehovNJarvisPassSEQFuncTests : public ppc::util::BaseRunFuncTests<InType,

namespace {

TEST_P(OrehovNJarvisPassSEQFuncTests, MatmulFromPic) {
TEST_P(OrehovNJarvisPassFuncTests, MatmulFromPic) {
ExecuteTest(GetParam());
}

const std::array<TestType, 3> kTestParam = {1, 2, 3};

const auto kTestTasksList =
std::tuple_cat(ppc::util::AddFuncTask<OrehovNJarvisPassSEQ, InType>(kTestParam, PPC_SETTINGS_example_threads));
std::tuple_cat(ppc::util::AddFuncTask<OrehovNJarvisPassSEQ, InType>(kTestParam, PPC_SETTINGS_orehov_n_jarvis_pass));

const auto kGtestValues = ppc::util::ExpandToValues(kTestTasksList);

const auto kPerfTestName = OrehovNJarvisPassSEQFuncTests::PrintFuncTestName<OrehovNJarvisPassSEQFuncTests>;
const auto kPerfTestName = OrehovNJarvisPassFuncTests::PrintFuncTestName<OrehovNJarvisPassFuncTests>;

INSTANTIATE_TEST_SUITE_P(PicMatrixTests, OrehovNJarvisPassSEQFuncTests, kGtestValues, kPerfTestName);
INSTANTIATE_TEST_SUITE_P(PicMatrixTests, OrehovNJarvisPassFuncTests, kGtestValues, kPerfTestName);

} // namespace

} // namespace orehov_n_jarvis_pass_seq
} // namespace orehov_n_jarvis_pass
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

#include <cmath>

#include "orehov_n_jarvis_pass_seq/common/include/common.hpp"
#include "orehov_n_jarvis_pass_seq/seq/include/ops_seq.hpp"
#include "orehov_n_jarvis_pass/common/include/common.hpp"
#include "orehov_n_jarvis_pass/seq/include/ops_seq.hpp"
#include "util/include/perf_test_util.hpp"

namespace orehov_n_jarvis_pass_seq {
namespace orehov_n_jarvis_pass {

class OrehovNJarvisPassSEQPerfTests : public ppc::util::BaseRunPerfTests<InType, OutType> {
class OrehovNJarvisPassPerfTests : public ppc::util::BaseRunPerfTests<InType, OutType> {
const int kCount_ = 2000;
InType input_data_;

Expand All @@ -33,20 +33,20 @@ class OrehovNJarvisPassSEQPerfTests : public ppc::util::BaseRunPerfTests<InType,
}
};

TEST_P(OrehovNJarvisPassSEQPerfTests, RunPerfModes) {
TEST_P(OrehovNJarvisPassPerfTests, RunPerfModes) {
ExecuteTest(GetParam());
}

namespace {

const auto kAllPerfTasks = ppc::util::MakeAllPerfTasks<InType, OrehovNJarvisPassSEQ>(PPC_SETTINGS_example_threads);
const auto kAllPerfTasks = ppc::util::MakeAllPerfTasks<InType, OrehovNJarvisPassSEQ>(PPC_SETTINGS_orehov_n_jarvis_pass);

const auto kGtestValues = ppc::util::TupleToGTestValues(kAllPerfTasks);

const auto kPerfTestName = OrehovNJarvisPassSEQPerfTests::CustomPerfTestName;
const auto kPerfTestName = OrehovNJarvisPassPerfTests::CustomPerfTestName;

INSTANTIATE_TEST_SUITE_P(RunModeTests, OrehovNJarvisPassSEQPerfTests, kGtestValues, kPerfTestName);
INSTANTIATE_TEST_SUITE_P(RunModeTests, OrehovNJarvisPassPerfTests, kGtestValues, kPerfTestName);

} // namespace

} // namespace orehov_n_jarvis_pass_seq
} // namespace orehov_n_jarvis_pass
Loading