Skip to content

Commit 867454d

Browse files
committed
enable MILK_QUIET
1 parent abeeff4 commit 867454d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

cudacomp.c

+9-2
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,18 @@ INIT_MODULE_LIB(cudacomp)
6464
static void __attribute__((constructor)) libinit_cudacomp_printinfo()
6565
{
6666
#ifdef HAVE_CUDA
67-
printf("[CUDA]");
67+
if(!getenv("MILK_QUIET"))
68+
{
69+
printf("[CUDA %d]", data.quiet);
70+
}
71+
6872
#endif
6973

7074
#ifdef HAVE_MAGMA
71-
printf("[MAGMA]");
75+
if(!getenv("MILK_QUIET"))
76+
{
77+
printf("[MAGMA]");
78+
}
7279
#endif
7380
}
7481

0 commit comments

Comments
 (0)