From bb0c224492da3977e2d5e0146356e09edf8fbe1d Mon Sep 17 00:00:00 2001 From: Michel de Messieres Date: Tue, 25 Aug 2020 06:53:00 -0600 Subject: [PATCH] Panzer: Protect evaluateFields with fence --- packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp b/packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp index 77d276de1659..275387180230 100644 --- a/packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp +++ b/packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp @@ -489,6 +489,8 @@ evaluateFields(typename Traits::EvalData d) using clock = std::chrono::steady_clock; std::chrono::time_point start = clock::now(); + typename PHX::Device().fence(); // temporary fence until UVM in evaluateFields fixed + nodes_[topoSortEvalIndex[n]].getNonConst()->evaluateFields(d); nodes_[topoSortEvalIndex[n]].sumIntoExecutionTime(clock::now()-start);