hpcg: add arm compiler (#35710)
This commit is contained in:
		 Annop Wongwathanarat
					Annop Wongwathanarat
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							54500a5fca
						
					
				
				
					commit
					68372a4dfe
				
			| @@ -33,6 +33,11 @@ class Hpcg(AutotoolsPackage): | |||||||
|         sha256="722c13837b287e979442f8372274aa5910a290aa39f1ed1ff646116be08dcae9", |         sha256="722c13837b287e979442f8372274aa5910a290aa39f1ed1ff646116be08dcae9", | ||||||
|         when="%aocc", |         when="%aocc", | ||||||
|     ) |     ) | ||||||
|  |     patch( | ||||||
|  |         "https://github.com/hpcg-benchmark/hpcg/commit/e9e0b7e6cae23e1f30dd983c2ce2d3bd34d56f75.patch?full_index=1", | ||||||
|  |         sha256="722c13837b287e979442f8372274aa5910a290aa39f1ed1ff646116be08dcae9", | ||||||
|  |         when="%arm", | ||||||
|  |     ) | ||||||
| 
 | 
 | ||||||
|     depends_on("mpi@1.1:") |     depends_on("mpi@1.1:") | ||||||
| 
 | 
 | ||||||
| @@ -41,7 +46,11 @@ class Hpcg(AutotoolsPackage): | |||||||
| 
 | 
 | ||||||
|     def configure(self, spec, prefix): |     def configure(self, spec, prefix): | ||||||
|         CXXFLAGS = "-O3 -ffast-math -ftree-vectorize " |         CXXFLAGS = "-O3 -ffast-math -ftree-vectorize " | ||||||
|         if not spec.satisfies("%aocc") and not spec.satisfies("%cce"): |         if ( | ||||||
|  |             not spec.satisfies("%aocc") | ||||||
|  |             and not spec.satisfies("%cce") | ||||||
|  |             and not spec.satisfies("%arm") | ||||||
|  |         ): | ||||||
|             CXXFLAGS += " -ftree-vectorizer-verbose=0 " |             CXXFLAGS += " -ftree-vectorizer-verbose=0 " | ||||||
|         if spec.satisfies("%cce"): |         if spec.satisfies("%cce"): | ||||||
|             CXXFLAGS += " -Rpass=loop-vectorize" |             CXXFLAGS += " -Rpass=loop-vectorize" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user