Skip to content

Commit 9c6ffbe

Browse files
updated mnist benchmarks
1 parent cc9e482 commit 9c6ffbe

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

benchmark/mnist/omp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ void run_omp(MNIST& D, unsigned num_threads) {
55

66
// Create a task flow graph
77
const auto iter_num = D.images.rows()/D.batch_size;
8-
const auto num_storage = num_threads * 2;
8+
const auto num_storage = num_threads;
99

1010
// number of concurrent shuffle tasks
1111
const auto num_par_shf = std::min(num_storage, D.epoch);

benchmark/mnist/taskflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void run_taskflow(MNIST& D, unsigned num_threads) {
1111
std::vector<tf::Task> shuffle_tasks;
1212

1313
// Number of parallel shuffle
14-
const auto num_storage = num_threads * 2;
14+
const auto num_storage = num_threads;
1515
const auto num_par_shf = std::min(num_storage, D.epoch);
1616

1717
std::vector<Eigen::MatrixXf> mats(num_par_shf, D.images);

benchmark/mnist/tbb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void run_tbb(MNIST& D, unsigned num_threads) {
1717
std::vector<std::unique_ptr<continue_node<continue_msg>>> shuffle_tasks;
1818

1919
// Number of parallel shuffle
20-
const auto num_storage = num_threads * 2;
20+
const auto num_storage = num_threads;
2121
const auto num_par_shf = std::min(num_storage, D.epoch);
2222

2323
std::vector<Eigen::MatrixXf> mats(num_par_shf, D.images);

0 commit comments

Comments
 (0)