From: Jianzhong Xu Date: Wed, 18 Oct 2017 19:50:57 +0000 (+0000) Subject: Skip CBLAS DSP initializtion if OFFLOAD is disabled. X-Git-Url: https://git.ti.com/gitweb?p=dense-linear-algebra-libraries%2Flinalg.git;a=commitdiff_plain;h=b416c10d8f1fc2e727fc8c720132bc0b83dda74c Skip CBLAS DSP initializtion if OFFLOAD is disabled. --- diff --git a/src/ti/linalg/blasblisacc/src/ti_cblas_initfini.c b/src/ti/linalg/blasblisacc/src/ti_cblas_initfini.c index 4ac5ddf..8549e92 100644 --- a/src/ti/linalg/blasblisacc/src/ti_cblas_initfini.c +++ b/src/ti/linalg/blasblisacc/src/ti_cblas_initfini.c @@ -128,8 +128,6 @@ int ti_blis_init(void) *============================================================================*/ void ti_cblas_init(void) { -#pragma omp critical (ti_cblas_init_critical) - { /* Add code for interception */ #ifdef TI_CBLAS_DEBUG char *no_debug_env = getenv("TI_CBLAS_NO_DEBUG"); @@ -157,9 +155,12 @@ void ti_cblas_init(void) ti_cblas_offload = atoi(offload_env); if (ti_cblas_offload == TI_CBLAS_OFFLOAD_NONE) { TI_CBLAS_DEBUG_PRINT("Disabling all offloads\n"); + return; } } +#pragma omp critical (ti_cblas_init_critical) + { /* 3-digit value: 012 * Left-most digit => L1 (0) * Middle-digit => L2 (1)