[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Andriy Andreykiv |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Wed, 26 Dec 2018 11:09:03 -0500 (EST) |
branch: consistent_partitioning_for_open_mp
commit 56a1522b565a7246b02b06affcf1d62128743e9d
Author: andrico <address@hidden>
Date: Wed Dec 26 17:03:28 2018 +0100
removing commented out or GCC specific pragmas
---
src/getfem/getfem_interpolation.h | 3 ---
src/getfem_omp.cc | 4 ----
2 files changed, 7 deletions(-)
diff --git a/src/getfem/getfem_interpolation.h
b/src/getfem/getfem_interpolation.h
index 6f114ef..51e2e2a 100644
--- a/src/getfem/getfem_interpolation.h
+++ b/src/getfem/getfem_interpolation.h
@@ -706,8 +706,6 @@ namespace getfem {
omp_distribute<VECTV> V_distributed;
auto partitioning_allowed = rg_source.is_partitioning_allowed();
rg_source.prohibit_partitioning();
- // #pragma GCC diagnostic push
- // #pragma GCC diagnostic ignored "-Wembedded-directive"
GETFEM_OMP_PARALLEL(
auto &V_thrd = V_distributed.thrd_cast();
gmm::resize(V_thrd, V.size());
@@ -720,7 +718,6 @@ namespace getfem {
if (gmm::abs(V_thrd[i]) > EPS) V[i] = V_thrd[i];
}
)
- // #pragma GCC diagnostic pop
if (partitioning_allowed) rg_source.allow_partitioning();
}
}
diff --git a/src/getfem_omp.cc b/src/getfem_omp.cc
index e662683..64155dd 100644
--- a/src/getfem_omp.cc
+++ b/src/getfem_omp.cc
@@ -321,15 +321,11 @@ namespace getfem{
void parallel_execution(std::function<void(void)> lambda,
bool iterate_over_partitions){
parallel_boilerplate boilerplate;
- #pragma omp parallel default(shared)
{
if (iterate_over_partitions) {
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-variable"
for (auto &&partitions : partition_master::get()) {
boilerplate.run_lamda(lambda);
}
- #pragma GCC diagnostic pop
}
else {
boilerplate.run_lamda(lambda);