Skip to content

Commit

Permalink
Fixing compilation in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
massimim committed Oct 24, 2022
1 parent 1ec449f commit 647e0ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions libNeonCore/include/Neon/core/types/vec/vec3d_integer.timp.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@


// $Id$

// $Log$

#pragma once

#include <cmath>
Expand All @@ -13,6 +7,7 @@
#include <string>
#include <type_traits>

#include "Neon/core/types/Macros.h"
// #include <cuda.h>
// #include <cuda_runtime_api.h>

Expand Down Expand Up @@ -734,7 +729,11 @@ auto Vec_3d<IntegerType_ta, true, false>::forEach(const Lambda& lambda) const
}
if constexpr (std::is_invocable_v<Lambda, Vec_3d<IntegerType_ta, true, false>>) {
if constexpr (computeMode_ta == Neon::computeMode_t::par) {
#ifdef NEON_OS_WINDOWS
#pragma omp parallel for collapse(3)
#else
#pragma omp parallel for simd collapse(3)
#endif
for (Integer zIdx = 0; zIdx < this->z; zIdx++) {
for (Integer yIdx = 0; yIdx < this->y; yIdx++) {
for (Integer xIdx = 0; xIdx < this->x; xIdx++) {
Expand Down
1 change: 1 addition & 0 deletions libNeonCore/tests/unit/coreUt_io/src/coreUt_io.dense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ TEST(coreUt_io, denseDiffRandom)
ASSERT_EQ(maxDiff.z, id.z);
ASSERT_EQ(maxCard, card);
}
A.ioVtk("A", "A");
}

0 comments on commit 647e0ca

Please sign in to comment.