Skip to content

Commit fe09487

Browse files
nixlbench: Allow compilation when etcd is not available (#953) (#959)
The code already handled running without etcd, but now allow it to compile without etcd. Signed-off-by: Ben Walker <[email protected]> Co-authored-by: Ben Walker <[email protected]>
1 parent dbdfe9e commit fe09487

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

benchmark/nixlbench/meson.build

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ if nvshmem_available
185185
]
186186
endif
187187

188-
if not etcd_available
189-
error('No runtime available or not found')
190-
endif
191-
192188
if nvshmem_available
193189
# Use nvcc directly for compilation and linking
194190
nvcc = find_program('nvcc')

benchmark/nixlbench/src/worker/worker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ static xferBenchRT *createRT(int *terminate) {
7575
return new xferBenchNullRT();
7676
}
7777

78+
#if HAVE_ETCD
7879
if (XFERBENCH_RT_ETCD == xferBenchConfig::runtime_type) {
7980
int total = 2;
8081
if (XFERBENCH_MODE_SG == xferBenchConfig::mode) {
@@ -93,6 +94,7 @@ static xferBenchRT *createRT(int *terminate) {
9394
}
9495
return etcd_rt;
9596
}
97+
#endif
9698

9799
std::cerr << "Invalid runtime: " << xferBenchConfig::runtime_type << std::endl;
98100
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)