Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

conditional compilation for openmp task on windows #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

malytomas
Copy link
Contributor

No description provided.

@@ -201,8 +201,8 @@ void Morphology<Operator>::run(int kernelRadius)
{
const std::size_t total(in_.rows * in_.cols);

UTILITY_OMP(parallel for)
for (std::size_t idx = 0; idx < total; ++idx) {
UTILITY_OMP(parallel for shared(kernelRadius))
Copy link
Member

Choose a reason for hiding this comment

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

If kernel radius is not modidifier, shouldn't it be firstprivate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shared preserves the same meaning as before. i do not change program logic, just make it compile with msvc (this is a workaround for a bug in the compiler)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants