Refs #174. Return sb pointer when OpenMP or Windows.
authorZhang Xianyi <traits.zhang@gmail.com>
Mon, 25 Feb 2013 16:48:21 +0000 (00:48 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Mon, 25 Feb 2013 16:48:21 +0000 (00:48 +0800)
driver/others/blas_server_omp.c
driver/others/blas_server_win32.c

index c45856f..21bc5f7 100644 (file)
@@ -224,6 +224,7 @@ static void exec_threads(blas_queue_t *queue){
                                            + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
          }
       }
+      queue->sb=sb;
     }
   }
 
index 9cbd7e2..bd1069c 100644 (file)
@@ -253,6 +253,7 @@ static DWORD WINAPI blas_thread_server(void *arg){
                                          + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B);
            }
        }
+       queue->sb=sb;
       }
        
 #ifdef MONITOR
@@ -495,4 +496,4 @@ void goto_set_num_threads(int num_threads)
 void openblas_set_num_threads(int num)
 {
        goto_set_num_threads(num);
-}
\ No newline at end of file
+}