Skip to content

Commit 26e13f4

Browse files
committed
more intel crap
1 parent c52a694 commit 26e13f4

4 files changed

Lines changed: 11 additions & 15 deletions

File tree

Common/include/containers/C2DContainer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ class C2DContainer :
584584
static_assert(Size, "This method requires a static output type.");
585585
assert(Size <= cols()-start);
586586
StaticContainer ret;
587-
SU2_OMP_SIMD_IF_NOT_AD
587+
SU2_OMP_SIMD
588588
for (size_t i=0; i<Size; ++i)
589589
ret.data()[i] = m_data[IsRowMajor? row*cols()+i+start : row+(i+start)*rows()];
590590
return ret;
@@ -601,7 +601,7 @@ class C2DContainer :
601601
assert(Size <= cols()-start);
602602
StaticContainer ret;
603603
for (size_t k=0; k<N; ++k) {
604-
SU2_OMP_SIMD_IF_NOT_AD
604+
SU2_OMP_SIMD
605605
for (size_t i=0; i<Size; ++i)
606606
ret.data()[i][k] = m_data[IsRowMajor? row[k]*cols()+i+start : row[k]+(i+start)*rows()];
607607
}

Common/include/linear_algebra/CSysVector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CSysVector : public VecExpr::CVecExpr<CSysVector<ScalarType>, ScalarType>
9090
FORCEINLINE static void UnpackBlock(const VecTypeSIMD& in, simd::Array<F, N> mask, ScalarType out[][nVar]) {
9191
static_assert(VecTypeSIMD::StaticSize, "This method requires static size vectors.");
9292
for (size_t i = 0; i < nVar; ++i) {
93-
SU2_OMP_SIMD_IF_NOT_AD
93+
SU2_OMP_SIMD
9494
for (size_t k = 0; k < N; ++k) out[k][i] = mask[k] * in[i][k];
9595
}
9696
}
@@ -413,7 +413,7 @@ class CSysVector : public VecExpr::CVecExpr<CSysVector<ScalarType>, ScalarType>
413413
/*--- Update one by one skipping if mask is 0. ---*/
414414
for (size_t k = 0; k < N; ++k) {
415415
if (mask[k] == 0) continue;
416-
SU2_OMP_SIMD_IF_NOT_AD
416+
SU2_OMP_SIMD
417417
for (size_t i = 0; i < nVar; ++i) vec_val[iPoint[k] * nVar + i] = vec[k][i];
418418
}
419419
}
@@ -434,7 +434,7 @@ class CSysVector : public VecExpr::CVecExpr<CSysVector<ScalarType>, ScalarType>
434434
/*--- Update one by one skipping if mask is 0. ---*/
435435
for (size_t k = 0; k < N; ++k) {
436436
if (mask[k] == 0) continue;
437-
SU2_OMP_SIMD_IF_NOT_AD
437+
SU2_OMP_SIMD
438438
for (size_t i = 0; i < nVar; ++i) {
439439
vec_val[iPoint[k] * nVar + i] += vec[k][i];
440440
vec_val[jPoint[k] * nVar + i] -= vec[k][i];

Common/include/omp_structure.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,6 @@ inline void omp_destroy_lock(omp_lock_t*){}
117117
#define SU2_OMP_SIMD
118118
#endif
119119

120-
#if defined(CODI_FORWARD_TYPE) || defined(CODI_REVERSE_TYPE)
121-
#define SU2_OMP_SIMD_IF_NOT_AD
122-
#else
123-
#define SU2_OMP_SIMD_IF_NOT_AD SU2_OMP_SIMD
124-
#endif
125-
126120
/*--- Convenience macros (do not use excessive nesting). ---*/
127121

128122
#define SU2_OMP_MASTER SU2_OMP(master)

externals/metis/meson.build

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
metis_c_args = ['-D_FILE_OFFSET_BITS=64', '-DNDEBUG', '-DNDEBUG2', '-DHAVE_GETLINE', '-DUSE_GKREGEX']
22

3-
if build_machine.system() == 'windows'
4-
metis_default_warnings = []
5-
else
6-
metis_default_warnings = ['-Wno-implicit-function-declaration', '-Wno-unused-result', '-Wno-macro-redefined']
3+
metis_default_warnings = []
4+
if build_machine.system() != 'windows'
5+
metis_default_warnings += ['-Wno-implicit-function-declaration']
6+
if meson.get_compiler('cpp').get_id() != 'intel'
7+
metis_default_warnings += ['-Wno-unused-result', '-Wno-macro-redefined']
8+
endif
79
endif
810

911
metis_src = ['GKlib/pqueue.c',

0 commit comments

Comments
 (0)