[clblas] 26/75: TLS for gcc 4.6

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jan 24 23:30:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository clblas.

commit 2b56167fbc887acaf42aa7707ab8cfcd3a8c468e
Author: David Tanner <guacamoleo at gmail.com>
Date:   Tue Mar 1 10:26:54 2016 -0600

    TLS for gcc 4.6
---
 src/library/blas/xgemm.cc | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/library/blas/xgemm.cc b/src/library/blas/xgemm.cc
index 5c27351..69ddb7d 100644
--- a/src/library/blas/xgemm.cc
+++ b/src/library/blas/xgemm.cc
@@ -17,7 +17,6 @@
 #include <map>
 #include <string>
 #include <sstream>
-#include <thread>
 #include <stdio.h>
 #include <string.h>
 #include <clBLAS.h>
@@ -28,6 +27,16 @@
 // #include <functor_selector.h>
 #include "xgemm.h"
 
+//#define GCC_VERSION (__GNUC__ * 10000 \
+//    + __GNUC_MINOR__ * 100 \
+//    + __GNUC_PATCHLEVEL__)
+
+#ifdef _WIN32
+//#include <thread>
+#else
+#include <pthread.h>
+#endif
+
 /******************************************************************************
  * Row major -> column major
  *****************************************************************************/
@@ -140,6 +149,7 @@ void makeGemmKernel(
 #if defined( _WIN32 )
   __declspec( thread ) static kernel_map_t *kernel_map = 0;
 #else
+#include <pthread.h>
   __thread static kernel_map_t *kernel_map = 0;
 #endif
   if (!kernel_map) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list