libceed package: add version 0.5 (#12875)
Also enable vectorization via -O3 for gcc/clang
This commit is contained in:
		 Jed Brown
					Jed Brown
				
			
				
					committed by
					
						 Peter Scheibel
						Peter Scheibel
					
				
			
			
				
	
			
			
			 Peter Scheibel
						Peter Scheibel
					
				
			
						parent
						
							08e77e1b41
						
					
				
				
					commit
					958b81a564
				
			| @@ -13,6 +13,7 @@ class Libceed(Package): | ||||
|     git      = "https://github.com/CEED/libCEED.git" | ||||
|  | ||||
|     version('develop', branch='master') | ||||
|     version('0.5', tag='v0.5') | ||||
|     version('0.4', tag='v0.4') | ||||
|     version('0.2', tag='v0.2') | ||||
|     version('0.1', tag='v0.1') | ||||
| @@ -60,7 +61,7 @@ def common_make_opts(self): | ||||
|             if '+debug' in spec: | ||||
|                 opt = '-g' | ||||
|             elif compiler.name == 'gcc': | ||||
|                 opt = '-O -g -ffp-contract=fast' | ||||
|                 opt = '-O3 -g -ffp-contract=fast' | ||||
|                 if compiler.target in ['x86_64']: | ||||
|                     opt += ' -march=native' | ||||
|                 elif compiler.target in ['ppc64le']: | ||||
| @@ -68,7 +69,7 @@ def common_make_opts(self): | ||||
|                 if compiler.version >= ver(4.9): | ||||
|                     opt += ' -fopenmp-simd' | ||||
|             elif compiler.name == 'clang': | ||||
|                 opt = '-O -g -march=native -ffp-contract=fast' | ||||
|                 opt = '-O3 -g -march=native -ffp-contract=fast' | ||||
|                 if compiler.version.string.endswith('-apple'): | ||||
|                     if compiler.version >= ver(10): | ||||
|                         opt += ' -fopenmp-simd' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user