Skip to content

Commit

Permalink
Panzer: Protect evaluateFields with fence
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheldeMessieres committed Aug 25, 2020
1 parent f9cf9c0 commit bb0c224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/phalanx/src/Phalanx_DAG_Manager_Def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ evaluateFields(typename Traits::EvalData d)
using clock = std::chrono::steady_clock;
std::chrono::time_point<clock> 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);
Expand Down

0 comments on commit bb0c224

Please sign in to comment.