Lines Matching refs:threads

1092     char     *threads = getenv("OMP_NUM_THREADS");  in PetscInitialize_Common()  local
1094 if (threads) { in PetscInitialize_Common()
1095 …PetscCall(PetscInfo(NULL, "Number of OpenMP threads %s (as given by OMP_NUM_THREADS)\n", threads)); in PetscInitialize_Common()
1096 (void)sscanf(threads, "%" PetscInt_FMT, &PetscNumOMPThreads); in PetscInitialize_Common()
1117 char *threads = NULL; in PetscInitialize_Common() local
1121 threads = getenv("BLIS_NUM_THREADS"); in PetscInitialize_Common()
1122 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of BLIS threads %s given by BLIS_… in PetscInitialize_Common()
1123 if (!threads) { in PetscInitialize_Common()
1124 threads = getenv("OMP_NUM_THREADS"); in PetscInitialize_Common()
1125 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of BLIS threads %s given by OMP_N… in PetscInitialize_Common()
1128 threads = getenv("MKL_NUM_THREADS"); in PetscInitialize_Common()
1129 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of MKL threads %s given by MKL_NU… in PetscInitialize_Common()
1130 if (!threads) { in PetscInitialize_Common()
1131 threads = getenv("OMP_NUM_THREADS"); in PetscInitialize_Common()
1132 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of MKL threads %s given by OMP_NU… in PetscInitialize_Common()
1135 threads = getenv("OPENBLAS_NUM_THREADS"); in PetscInitialize_Common()
1136 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of OpenBLAS threads %s given by O… in PetscInitialize_Common()
1137 if (!threads) { in PetscInitialize_Common()
1138 threads = getenv("OMP_NUM_THREADS"); in PetscInitialize_Common()
1139 …if (threads) PetscCall(PetscInfo(NULL, "BLAS: Environment number of OpenBLAS threads %s given by O… in PetscInitialize_Common()
1142 if (threads) (void)sscanf(threads, "%" PetscInt_FMT, &PetscNumBLASThreads); in PetscInitialize_Common()
1145 if (flg || threads) { in PetscInitialize_Common()