Pārlūkot izejas kodu

tests: do not print when environment variable STARPU_SSILENT is set

Nathalie Furmento 13 gadi atpakaļ
vecāks
revīzija
02736079a5

+ 2 - 1
tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets_cuda.cu

@@ -16,6 +16,7 @@
 #include <starpu.h>
 #include <starpu_cuda.h>
 #include "multiformat_types.h"
+#include "../../../common/helper.h"
 
 static __global__ void cpu_to_cuda_cuda(struct point *src,
 	struct struct_of_arrays *dst, unsigned n)
@@ -32,7 +33,7 @@ static __global__ void cpu_to_cuda_cuda(struct point *src,
 
 extern "C" void cpu_to_cuda_cuda_func(void *buffers[], void *_args)
 {
-	fprintf(stderr, "Entering %s\n", __func__);
+	FPRINTF(stderr, "Entering %s\n", __func__);
 	struct point *src;
 	struct struct_of_arrays *dst;
 

+ 2 - 1
tests/datawizard/interfaces/multiformat/multiformat_cuda.cu

@@ -17,6 +17,7 @@
 #include <starpu_cuda.h>
 #include "multiformat_types.h"
 #include "../test_interfaces.h"
+#include "../../../common/helper.h"
 
 extern struct test_config multiformat_config;
 
@@ -41,7 +42,7 @@ static __global__ void multiformat_cuda(struct struct_of_arrays *soa, unsigned n
 
 extern "C" void test_multiformat_cuda_func(void *buffers[], void *args)
 {
-	fprintf(stderr, "Entering %s\n", __func__);
+	FPRINTF(stderr, "Entering %s\n", __func__);
 	int factor;
 	int *ret;
 	cudaError_t error;