Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions modules/core/task/include/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include <iomanip>
#include <iostream>
#include <memory>
#ifdef _OPENMP
#include <omp.h>
#endif
#include <sstream>
#include <stdexcept>
#include <string>
Expand Down Expand Up @@ -177,6 +180,9 @@ class Task {
} else {
functions_order_.clear();
}
#ifdef _OPENMP
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we use define, is it no base function of omp library?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need. Removed

omp_pause_resource_all(omp_pause_hard);
#endif
}

protected:
Expand Down
1 change: 1 addition & 0 deletions tasks/example_threads/omp/src/ops_omp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <atomic>
#include <numeric>
#include <vector>
#include <omp.h>

#include "core/util/include/util.hpp"
#include "example_threads/common/include/common.hpp"
Expand Down