diff --git a/tests/Makefile b/tests/Makefile index 79f460b1..5543d93c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -48,7 +48,7 @@ gdrcopy_apiperf: apiperf.o common.o $(LINK.cc) -o $@ $^ $(LIBS) -lrt gdrcopy_pplat: pplat.o common.o - $(NVCC) -o $@ $^ $(LDFLAGS) -lgdrapi -lcuda + $(LINK.cc) -o $@ $^ $(LDFLAGS) -lgdrapi -lcuda -lcudart_static %.o: %.cu $(NVCC) -o $@ -c $^ $(LIBS) $(CPPFLAGS) $(NVCCFLAGS) diff --git a/tests/testsuites/testsuite.cpp b/tests/testsuites/testsuite.cpp index b3304089..6637e082 100644 --- a/tests/testsuites/testsuite.cpp +++ b/tests/testsuites/testsuite.cpp @@ -71,7 +71,7 @@ namespace gdrcopy { for (std::vector::iterator it = tests.begin(); it != tests.end(); ++it) { if ((test_map->find(*it) == test_map->end()) && (extended_test_map->find(*it) == extended_test_map->end())) { - gdrcopy::test::print_dbg("Error: Encountered unknown test %s\n", *it); + gdrcopy::test::print_dbg("Error: Encountered unknown test %s\n", it->c_str()); return EINVAL; } }