Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimbelan authored Jun 11, 2024
1 parent da63cd0 commit d127f16
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions tasks/omp/belan_vadim_mat_fox_omp/func_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#include <vector>

#include "omp/belan_vadim_mat_fox_omp/include/ops_omp.hpp"
#include "tbb/belan_vadim_mat_fox_tbb/include/ops_tbb.hpp"

using namespace BelanOMP;
using namespace BelanTBB;

TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
TEST(BelanFoxBlockedParallelOMP, MatrixMultiplication2x2) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4};
std::vector<double> matrixB = {4, 3, 2, 1};
Expand Down Expand Up @@ -41,7 +41,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication) {
TEST(BelanFoxBlockedParallelOMP, MatrixMultiplication) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4, 5, 6, 7, 8, 9};
std::vector<double> matrixB = {9, 8, 7, 6, 5, 4, 3, 2, 1};
Expand Down Expand Up @@ -76,7 +76,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
TEST(BelanFoxBlockedParallelOMP, MatrixMultiplication_VerySmallMatrices) {
// Define input matrices
std::vector<double> matrixA(10 * 10);
std::vector<double> matrixB(10 * 10);
Expand Down Expand Up @@ -126,7 +126,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
TEST(BelanFoxBlockedParallelOMP, MatrixMultiplication_SmallMatrices) {
// Define input matrices
std::vector<double> matrixA(100 * 100);
std::vector<double> matrixB(100 * 100);
Expand Down Expand Up @@ -176,7 +176,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplicationWithNegatives) {
TEST(BelanFoxBlockedParallelOMP, MatrixMultiplicationWithNegatives) {
// Define input matrices with negative values
std::vector<double> matrixA = {-1, -2, -3, -4, -5, -6, -7, -8, -9};
std::vector<double> matrixB = {-9, -8, -7, -6, -5, -4, -3, -2, -1};
Expand Down
10 changes: 5 additions & 5 deletions tasks/stl/belan_vadim_mat_fox_stl/func_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace BelanSTL;

TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
TEST(BelanFoxBlockedParallelSTL, MatrixMultiplication2x2) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4};
std::vector<double> matrixB = {4, 3, 2, 1};
Expand Down Expand Up @@ -41,7 +41,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication) {
TEST(BelanFoxBlockedParallelSTL, MatrixMultiplication) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4, 5, 6, 7, 8, 9};
std::vector<double> matrixB = {9, 8, 7, 6, 5, 4, 3, 2, 1};
Expand Down Expand Up @@ -76,7 +76,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
TEST(BelanFoxBlockedParallelSTL, MatrixMultiplication_VerySmallMatrices) {
// Define input matrices
std::vector<double> matrixA(10 * 10);
std::vector<double> matrixB(10 * 10);
Expand Down Expand Up @@ -126,7 +126,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
TEST(BelanFoxBlockedParallelSTL, MatrixMultiplication_SmallMatrices) {
// Define input matrices
std::vector<double> matrixA(100 * 100);
std::vector<double> matrixB(100 * 100);
Expand Down Expand Up @@ -176,7 +176,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplicationWithNegatives) {
TEST(BelanFoxBlockedParallelSTL, MatrixMultiplicationWithNegatives) {
// Define input matrices with negative values
std::vector<double> matrixA = {-1, -2, -3, -4, -5, -6, -7, -8, -9};
std::vector<double> matrixB = {-9, -8, -7, -6, -5, -4, -3, -2, -1};
Expand Down
10 changes: 5 additions & 5 deletions tasks/tbb/belan_vadim_mat_fox_tbb/func_tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using namespace BelanTBB;

TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
TEST(BelanFoxBlockedParallelTBB, MatrixMultiplication2x2) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4};
std::vector<double> matrixB = {4, 3, 2, 1};
Expand Down Expand Up @@ -41,7 +41,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication2x2) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication) {
TEST(BelanFoxBlockedParallelTBB, MatrixMultiplication) {
// Define input matrices
std::vector<double> matrixA = {1, 2, 3, 4, 5, 6, 7, 8, 9};
std::vector<double> matrixB = {9, 8, 7, 6, 5, 4, 3, 2, 1};
Expand Down Expand Up @@ -76,7 +76,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
TEST(BelanFoxBlockedParallelTBB, MatrixMultiplication_VerySmallMatrices) {
// Define input matrices
std::vector<double> matrixA(10 * 10);
std::vector<double> matrixB(10 * 10);
Expand Down Expand Up @@ -126,7 +126,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_VerySmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
TEST(BelanFoxBlockedParallelTBB, MatrixMultiplication_SmallMatrices) {
// Define input matrices
std::vector<double> matrixA(100 * 100);
std::vector<double> matrixB(100 * 100);
Expand Down Expand Up @@ -176,7 +176,7 @@ TEST(FoxBlockedParallel, MatrixMultiplication_SmallMatrices) {
delete[] output;
}

TEST(FoxBlockedParallel, MatrixMultiplicationWithNegatives) {
TEST(BelanFoxBlockedParallelTBB, MatrixMultiplicationWithNegatives) {
// Define input matrices with negative values
std::vector<double> matrixA = {-1, -2, -3, -4, -5, -6, -7, -8, -9};
std::vector<double> matrixB = {-9, -8, -7, -6, -5, -4, -3, -2, -1};
Expand Down

0 comments on commit d127f16

Please sign in to comment.