Replace mpi inside bsc attribute
This commit is contained in:
		
							parent
							
								
									bae3c75222
								
							
						
					
					
						commit
						73b33c4d6c
					
				
							
								
								
									
										41
									
								
								pkgs/mpi.nix
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								pkgs/mpi.nix
									
									
									
									
									
								
							| @ -1,25 +1,28 @@ | |||||||
| let | let | ||||||
|   overlay = final: prev: |   overlay = final: prev: | ||||||
|   { |   { | ||||||
|     mpich = with final; prev.mpich.overrideAttrs (old: { |     bsc = prev.bsc.extend (bsc: { | ||||||
|       buildInput = old.buildInputs ++ [ |       mpi2 = bsc.mpich; | ||||||
|         libfabric |       mpich = with final; prev.mpich.overrideAttrs (old: { | ||||||
|         pmix |         buildInput = old.buildInputs ++ [ | ||||||
|       ]; |           libfabric | ||||||
|       configureFlags = [ |           pmix | ||||||
|         "--enable-shared" |         ]; | ||||||
|         "--enable-sharedlib" |         configureFlags = [ | ||||||
|         "--with-pm=no" |           "--enable-shared" | ||||||
|         "--with-device=ch4:ofi" |           "--enable-sharedlib" | ||||||
|         "--with-pmi=pmix" |           "--with-pm=no" | ||||||
|         "--with-pmix=${final.pmix}" |           "--with-device=ch4:ofi" | ||||||
|         "--with-libfabric=${final.libfabric}" |           "--with-pmi=pmix" | ||||||
|         "--enable-g=log" |           "--with-pmix=${final.pmix}" | ||||||
|       ] ++ lib.optionals (lib.versionAtLeast gfortran.version "10") [ |           "--with-libfabric=${final.libfabric}" | ||||||
|         "FFLAGS=-fallow-argument-mismatch" # https://github.com/pmodels/mpich/issues/4300 |           "--enable-g=log" | ||||||
|         "FCFLAGS=-fallow-argument-mismatch" |         ] ++ lib.optionals (lib.versionAtLeast gfortran.version "10") [ | ||||||
|       ]; |           "FFLAGS=-fallow-argument-mismatch" # https://github.com/pmodels/mpich/issues/4300 | ||||||
|     }); |           "FCFLAGS=-fallow-argument-mismatch" | ||||||
|  |         ]; | ||||||
|  |       }); | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| in | in | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user