Skip to content

Commit

Permalink
#908 nvcc- additional template selectors
Browse files Browse the repository at this point in the history
- These fail in NVCC 11, but passed in 10.1..
  • Loading branch information
pnstickne committed Jul 14, 2020
1 parent d19c7ac commit 24fc682
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/perf/ping_pong.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static void finishedPing(FinishedPingMsg<num_bytes>* msg) {

if (num_bytes != max_bytes) {
auto pmsg = makeMessage<PingMsg<num_bytes * 2>>();
theMsg()->sendMsg<PingMsg<num_bytes * 2>, pingPong>(
theMsg()->sendMsg<PingMsg<num_bytes * 2>, pingPong<num_bytes * 2>>(
pong_node, pmsg.get()
);
}
Expand Down Expand Up @@ -133,20 +133,20 @@ static void pingPong(PingMsg<num_bytes>* in_msg) {

if (cnt >= num_pings) {
auto msg = makeMessage<FinishedPingMsg<num_bytes>>(num_bytes);
theMsg()->sendMsg<FinishedPingMsg<num_bytes>, finishedPing>(
theMsg()->sendMsg<FinishedPingMsg<num_bytes>, finishedPing<num_bytes>>(
0, msg.get()
);
} else {
NodeType const next =
theContext()->getNode() == ping_node ? pong_node : ping_node;
#if REUSE_MESSAGE_PING_PONG
// @todo: fix this memory allocation problem
theMsg()->sendMsg<PingMsg<num_bytes>, pingPong>(
theMsg()->sendMsg<PingMsg<num_bytes>, pingPong<num_bytes>>(
next, in_msg, [=]{ /*delete in_msg;*/ }
);
#else
auto m = makeMessage<PingMsg<num_bytes>>(cnt + 1);
theMsg()->sendMsg<PingMsg<num_bytes>, pingPong>(next, m.get());
theMsg()->sendMsg<PingMsg<num_bytes>, pingPong<num_bytes>>(next, m.get());
#endif
}
}
Expand All @@ -169,7 +169,7 @@ int main(int argc, char** argv) {

if (my_node == 0) {
auto m = makeMessage<PingMsg<min_bytes>>();
theMsg()->sendMsg<PingMsg<min_bytes>, pingPong>(pong_node, m.get());
theMsg()->sendMsg<PingMsg<min_bytes>, pingPong<min_bytes>>(pong_node, m.get());
}

while (!rt->isTerminated()) {
Expand Down

0 comments on commit 24fc682

Please sign in to comment.