py-numpy: enable linking with armpl-gcc and acfl for BLAS and LAPACK (#35417)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
		 Annop Wongwathanarat
					Annop Wongwathanarat
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							028535030c
						
					
				
				
					commit
					5f8f89b9c9
				
			| @@ -315,11 +315,17 @@ def write_library_dirs(f, dirs): | |||||||
|                     f.write("include_dirs = {0}\n".format(lapack_header_dirs)) |                     f.write("include_dirs = {0}\n".format(lapack_header_dirs)) | ||||||
|                     f.write("extra_link_args = {0}\n".format(self.spec["lapack"].libs.ld_flags)) |                     f.write("extra_link_args = {0}\n".format(self.spec["lapack"].libs.ld_flags)) | ||||||
| 
 | 
 | ||||||
|             if "^armpl-gcc" in spec: |             if "^armpl-gcc" in spec or "^acfl" in spec: | ||||||
|                 f.write("[blas]\n") |                 if spec.satisfies("+blas"): | ||||||
|                 f.write("libraries = {0}\n".format(lapackblas_lib_names)) |                     f.write("[blas]\n") | ||||||
|                 write_library_dirs(f, lapackblas_lib_dirs) |                     f.write("libraries = {0}\n".format(blas_lib_names)) | ||||||
|                 f.write("include_dirs = {0}\n".format(lapackblas_header_dirs)) |                     write_library_dirs(f, blas_lib_dirs) | ||||||
|  |                     f.write("include_dirs = {0}\n".format(blas_header_dirs)) | ||||||
|  |                 if spec.satisfies("+lapack"): | ||||||
|  |                     f.write("[lapack]\n") | ||||||
|  |                     f.write("libraries = {0}\n".format(lapack_lib_names)) | ||||||
|  |                     write_library_dirs(f, lapack_lib_dirs) | ||||||
|  |                     f.write("include_dirs = {0}\n".format(lapack_header_dirs)) | ||||||
| 
 | 
 | ||||||
|     def setup_build_environment(self, env): |     def setup_build_environment(self, env): | ||||||
|         # Tell numpy which BLAS/LAPACK libraries we want to use. |         # Tell numpy which BLAS/LAPACK libraries we want to use. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user