Refs #225. Fixed a bug in GEMM OpenMP threading.
authorZhang Xianyi <traits.zhang@gmail.com>
Mon, 15 Jul 2013 01:56:19 +0000 (09:56 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Mon, 15 Jul 2013 01:56:19 +0000 (09:56 +0800)
driver/others/blas_server_omp.c

index c567ed6..0a484f3 100644 (file)
@@ -231,7 +231,10 @@ static void exec_threads(blas_queue_t *queue){
       release_flag=1;
     }
 
-    if (sa == NULL) sa = (void *)((BLASLONG)buffer + GEMM_OFFSET_A);
+    if (sa == NULL) {
+      sa = (void *)((BLASLONG)buffer + GEMM_OFFSET_A);
+      queue->sa=sa;
+    }
     
     if (sb == NULL) {
       if (!(queue -> mode & BLAS_COMPLEX)){