Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ee32dd91 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

coreblas/trace: add an environment variable to enable/disable log info

parent 8b915c80
No related branches found
No related tags found
1 merge request!256Update on descriptors
......@@ -22,10 +22,20 @@
*/
#include "coreblas.h"
#include <stdarg.h>
#include <stdlib.h>
int _coreblas_silent = 0;
static int coreblas_gemm3m_enabled = 0;
__attribute__((unused)) __attribute__((constructor)) static void
__coreblas_lib_init()
{
char *silent = getenv("CHAMELEON_COREBLAS_SILENT");
if ( silent && !(strcmp( silent, "0" ) == 0) ) {
_coreblas_silent = 1;
}
}
#if defined(CHAMELEON_KERNELS_TRACE)
void __coreblas_kernel_trace( const char *func, ... )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment