Skip to content

Commit 3f8bb50

Browse files
committed
fix: use uint32_t for slotqueue timestamp as a dirty way to ensure data_t is 64 bits in benchmarks
1 parent 18001da commit 3f8bb50

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

implementations/slotqueue/hosted-slotqueue.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
template <typename T> class HostedSlotQueue {
1313
private:
14-
typedef uint64_t timestamp_t;
15-
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint64_t)0);
14+
typedef uint32_t timestamp_t;
15+
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint32_t)0);
1616
constexpr static MPI_Aint DUMMY_RANK = ~((MPI_Aint)0);
1717

1818
struct data_t {
1919
T data;
20-
uint64_t timestamp;
20+
uint32_t timestamp;
2121
};
2222

2323
MPI_Comm _comm;

implementations/slotqueue/slotqueue-node-2.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
template <typename T> class SlotNodeQueue_2 {
1313
private:
14-
typedef uint64_t timestamp_t;
15-
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint64_t)0);
14+
typedef uint32_t timestamp_t;
15+
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint32_t)0);
1616
constexpr static MPI_Aint DUMMY_RANK = ~((MPI_Aint)0);
1717

1818
struct data_t {
1919
T data;
20-
uint64_t timestamp;
20+
uint32_t timestamp;
2121
};
2222

2323
MPI_Comm _comm;

implementations/slotqueue/slotqueue-node.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
template <typename T> class SlotNodeQueue {
1313
private:
14-
typedef uint64_t timestamp_t;
15-
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint64_t)0);
14+
typedef uint32_t timestamp_t;
15+
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint32_t)0);
1616
constexpr static MPI_Aint DUMMY_RANK = ~((MPI_Aint)0);
1717

1818
struct data_t {
1919
T data;
20-
uint64_t timestamp;
20+
uint32_t timestamp;
2121
};
2222

2323
MPI_Comm _comm;

implementations/slotqueue/slotqueue-unbounded.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
template <typename T> class UnboundedSlotQueue {
1313
private:
14-
typedef uint64_t timestamp_t;
15-
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint64_t)0);
14+
typedef uint32_t timestamp_t;
15+
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint32_t)0);
1616
constexpr static MPI_Aint DUMMY_RANK = ~((MPI_Aint)0);
1717

1818
struct data_t {
1919
T data;
20-
uint64_t timestamp;
20+
uint32_t timestamp;
2121
};
2222

2323
MPI_Comm _comm;

implementations/slotqueue/slotqueue.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
template <typename T> class SlotQueue {
1313
private:
14-
typedef uint64_t timestamp_t;
15-
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint64_t)0);
14+
typedef uint32_t timestamp_t;
15+
constexpr static timestamp_t MAX_TIMESTAMP = ~((uint32_t)0);
1616
constexpr static MPI_Aint DUMMY_RANK = ~((MPI_Aint)0);
1717

1818
struct data_t {
1919
T data;
20-
uint64_t timestamp;
20+
uint32_t timestamp;
2121
};
2222

2323
MPI_Comm _comm;

0 commit comments

Comments
 (0)