Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/client/Utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ THE SOFTWARE.
#pragma once
#include <algorithm>
#include <cmath>
#include <numeric>
#include <iomanip>
#include <map>
#include <set>
Expand Down Expand Up @@ -487,12 +488,12 @@ namespace TransferBench::Utils
}
}

// Macro for use in presets that will return 1 if a value is not uniform across ranks
// Macro for use in presets that will return ERR_FATAL if a value is not uniform across ranks
#define IS_UNIFORM(val, name) \
do { \
if (!Utils::IsUniform(val)) { \
Utils::Print("[ERROR] %s must be uniform across all ranks\n", name); \
return 1; \
Utils::Print("[ERROR] %s must be uniform across all ranks\n", name); \
return ERR_FATAL; \
} \
} while(0)

Expand Down
Loading