Skip to content

Commit

Permalink
#443 Windows without MPI CI build fix on DFL
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri Baron <[email protected]>
  • Loading branch information
barondim authored and rosiereflo committed Dec 18, 2024
1 parent dc7c9fa commit 4d59689
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/Common/DYNMultiProcessingContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,17 @@ class Context {
* @tparam T the data type to broadcast
* @param data the data to broadcast
*/
#ifdef _MPI_
template<class T>
void broadcast(T& data) const {
#ifdef _MPI_
broadcastImpl(Tag<T>(), data);
#endif
}
#else
template<class T>
void broadcast(T&) const {
// do nothing
}
#endif

#ifdef _MPI_
/**
Expand Down

0 comments on commit 4d59689

Please sign in to comment.