From 36e098296684b264f8b0979268e775519be1c81e Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Tue, 22 Jan 2013 00:29:54 +0800 Subject: [PATCH] Refs #187. Use perl to generate cblas_noconst.h instead of sed. Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187 --- Makefile.prebuild | 2 +- getarch_2nd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.prebuild b/Makefile.prebuild index f4b0bb5..c7d0de7 100644 --- a/Makefile.prebuild +++ b/Makefile.prebuild @@ -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: diff --git a/getarch_2nd.c b/getarch_2nd.c index 5339af4..4bdd16a 100644 --- a/getarch_2nd.c +++ b/getarch_2nd.c @@ -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; -- 2.7.4