@@ -69,10 +69,13 @@ void run_bench(
6969
7070 // For writes, wait until client has written the targer number of messages; then write them back
7171 if (operation) {
72+ // printf("Run %d: Waiting for %u writes from client...\n", i, transfers);
7273 while (coyote_thread.checkCompleted (coyote::CoyoteOper::LOCAL_WRITE) != transfers) {}
74+ // printf("Run %d: Received %u writes from client; writing them back...\n", i, transfers);
7375
7476 for (int i = 0 ; i < transfers; i++) {
7577 coyote_thread.invoke (coyote::CoyoteOper::REMOTE_RDMA_WRITE, sg);
78+ // printf("Run %d: Invoked write %d/%d\n", i, i+1, transfers);
7679 }
7780 // For reads, the server is completely passive
7881 } else {
@@ -123,10 +126,13 @@ int main(int argc, char *argv[]) {
123126
124127 int * vaddr_1 = (int *) coyote_thread.getMem ({coyote::CoyoteAllocType::GPU, max_size, false , 0 });
125128
129+ // if (hipSetDevice(0)) { throw std::runtime_error("Couldn't select GPU!"); }
126130 int * vaddr_2 = (int *) coyote_thread.getMem ({coyote::CoyoteAllocType::GPU, max_size, false , 1 });
127131
132+ // if (hipSetDevice(0)) { throw std::runtime_error("Couldn't select GPU!"); }
128133 int * vaddr_3 = (int *) coyote_thread.getMem ({coyote::CoyoteAllocType::GPU, max_size, false , 2 });
129134
135+ // if (hipSetDevice(0)) { throw std::runtime_error("Couldn't select GPU!"); }
130136 int * vaddr_4 = (int *) coyote_thread.getMem ({coyote::CoyoteAllocType::GPU, max_size, false , 3 });
131137
132138 // Print all the new buffer addresses
@@ -154,7 +160,7 @@ int main(int argc, char *argv[]) {
154160 while (curr_size <= max_size) {
155161 coyote::rdmaSg sg = { .len = curr_size };
156162 // run_bench(coyote_thread, sg, mem, N_THROUGHPUT_REPS, n_runs, operation);
157- run_bench (coyote_thread, sg, mem, N_LATENCY_REPS, n_runs, operation);
163+ run_bench (coyote_thread, sg, mem, N_LATENCY_REPS, n_runs + 10 , operation);
158164 curr_size *= 2 ;
159165 }
160166
0 commit comments