Fixed the undefined reference to blas_set_parameter
authorDandan Zhang <zhangdandan@loongson.cn>
Wed, 20 Nov 2024 10:52:32 +0000 (11:52 +0100)
committerSébastien Villemot <sebastien@debian.org>
Wed, 20 Nov 2024 10:52:32 +0000 (11:52 +0100)
Applied-Upstream: <0.3.29>, <https://github.com/OpenMathLib/OpenBLAS/pull/4877>
Last-Update: 2024-11-01

Gbp-Pq: Name openblas-Fixed-undefined-reference-to-blas_set_parameter.patc

driver/others/blas_server_omp.c

index 06862cec02ecf244e553a2349a59f901ea0b53c7..4341389d81e251b0b9d828ce2c6b84bfa24cf039 100644 (file)
@@ -114,9 +114,11 @@ void goto_set_num_threads(int num_threads) {
 
   adjust_thread_buffers();
 #if defined(ARCH_MIPS64) || defined(ARCH_LOONGARCH64)
+#ifndef DYNAMIC_ARCH
   //set parameters for different number of threads.
   blas_set_parameter();
 #endif
+#endif
 
 }
 void openblas_set_num_threads(int num_threads) {