Refs #187. Use perl to generate cblas_noconst.h instead of sed.
Thank Dan Povey's patch. https://github.com/xianyi/OpenBLAS/issues/187
This commit is contained in:
		
							parent
							
								
									8cdb795438
								
							
						
					
					
						commit
						36e0982966
					
				| 
						 | 
					@ -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:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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…
	
		Reference in New Issue