We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ccd57c commit cfa9392Copy full SHA for cfa9392
1 file changed
driver/others/memory.c
@@ -241,9 +241,6 @@ void set_stack_limit(int limitMB){
241
*/
242
#endif
243
244
-int openblas_get_num_procs(void) {
245
- return get_num_procs();
246
-}
247
248
/*
249
OpenBLAS uses the numbers of CPU cores in multithreading.
@@ -327,8 +324,21 @@ int blas_get_cpu_number(void){
327
324
}
328
325
329
326
+
+int openblas_get_num_procs(void) {
+#ifndef SMP
330
+ return 1;
331
+#else
332
+ return get_num_procs();
333
+#endif
334
+}
335
336
int openblas_get_num_threads(void) {
337
338
339
340
return blas_get_cpu_number();
341
342
343
344
struct release_t {
0 commit comments