-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfer data_frames in multiples of 64 bytes to lift maximum transfe…
…r size restriction
- Loading branch information
Showing
6 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
#pragma once | ||
|
||
#include <mpi.h> | ||
|
||
namespace celerity::detail::mpi_support { | ||
|
||
constexpr int TAG_CMD = 0; | ||
constexpr int TAG_DATA_TRANSFER = 1; | ||
constexpr int TAG_TELEMETRY = 2; | ||
|
||
class data_type { | ||
public: | ||
explicit data_type(MPI_Datatype dt) : m_dt(dt) {} | ||
data_type(const data_type&) = delete; | ||
data_type& operator=(const data_type&) = delete; | ||
~data_type() { MPI_Type_free(&m_dt); } | ||
|
||
operator MPI_Datatype() const { return m_dt; } | ||
|
||
private: | ||
MPI_Datatype m_dt; | ||
}; | ||
|
||
} // namespace celerity::detail::mpi_support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters