From: Zhang Xianyi Date: Mon, 21 Jan 2013 16:29:54 +0000 (+0800) Subject: Refs #187. Use perl to generate cblas_noconst.h instead of sed. X-Git-Tag: v0.2.9.rc1~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36e098296684b264f8b0979268e775519be1c81e;p=platform%2Fupstream%2Fopenblas.git Refs #187. Use perl to generate cblas_noconst.h instead of sed. Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187 --- 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;