Browse Source

Refs #187. Use perl to generate cblas_noconst.h instead of sed.

Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187
tags/v0.2.6
Zhang Xianyi 13 years ago
parent
commit
36e0982966
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Makefile.prebuild
  2. +1
    -1
      getarch_2nd.c

+ 1
- 1
Makefile.prebuild View File

@@ -39,6 +39,6 @@ else
endif endif


cblas_noconst.h : cblas.h 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: dummy:

+ 1
- 1
getarch_2nd.c View File

@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
#ifdef USE64BITINT #ifdef USE64BITINT
printf("#define USE64BITINT\n"); printf("#define USE64BITINT\n");
#endif #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; return 0;


Loading…
Cancel
Save