diff --git a/driver/others/blas_server_omp.c b/driver/others/blas_server_omp.c index 38b48fc84..32bd995a2 100644 --- a/driver/others/blas_server_omp.c +++ b/driver/others/blas_server_omp.c @@ -48,6 +48,7 @@ #else +#include #ifndef likely #ifdef __GNUC__ #define likely(x) __builtin_expect(!!(x), 1) @@ -172,6 +173,9 @@ int BLASFUNC(blas_thread_shutdown)(void){ } } } +#if HAVE_OMP_PAUSE_RESOURCE_ALL + omp_pause_resource_all(omp_pause_hard); +#endif return 0; }