Refs #187. Use perl to generate cblas_noconst.h instead of sed.
authorZhang Xianyi <traits.zhang@gmail.com>
Mon, 21 Jan 2013 16:29:54 +0000 (00:29 +0800)
committerZhang Xianyi <traits.zhang@gmail.com>
Mon, 21 Jan 2013 16:29:54 +0000 (00:29 +0800)
Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187

Makefile.prebuild
getarch_2nd.c

index f4b0bb5..c7d0de7 100644 (file)
@@ -39,6 +39,6 @@ else
 endif
 
 cblas_noconst.h : cblas.h
-       sed -e "s/\bconst\b\s*//g" cblas.h > cblas_noconst.h
+       perl -ane ' s/\bconst\b\s*//g; print; ' < cblas.h > cblas_noconst.h     
 
 dummy:
index 5339af4..4bdd16a 100644 (file)
@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
 #ifdef USE64BITINT
        printf("#define USE64BITINT\n");
 #endif
-       printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", GEMM_MULTITHREAD_THRESHOLD);
+       printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", (long int)GEMM_MULTITHREAD_THRESHOLD);
   }
 
   return 0;