Testing SLURM jobs with ppong
This commit is contained in:
		
							parent
							
								
									85c15e9f3f
								
							
						
					
					
						commit
						39a639ac10
					
				| @ -28,6 +28,16 @@ let | |||||||
|     ppong-job = srunner { app=ppong; }; |     ppong-job = srunner { app=ppong; }; | ||||||
| 
 | 
 | ||||||
|     exp = { |     exp = { | ||||||
|  |       jobs = callPackage ./experiments { | ||||||
|  |         apps = map (app: srunner {app=app;}) ( | ||||||
|  |           genApps [ ppong ] ( | ||||||
|  |             genConfigs { | ||||||
|  |               mpi = [ bsc.intel-mpi pkgs.mpich pkgs.openmpi ]; | ||||||
|  |             } | ||||||
|  |           ) | ||||||
|  |         ); | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|       mpiImpl = callPackage ./experiments { |       mpiImpl = callPackage ./experiments { | ||||||
|         apps = genApps [ ppong ] ( |         apps = genApps [ ppong ] ( | ||||||
|           genConfigs { |           genConfigs { | ||||||
|  | |||||||
| @ -1,5 +1,6 @@ | |||||||
| { | { | ||||||
|   stdenv |   stdenv | ||||||
|  | , numactl | ||||||
| }: | }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
| @ -41,7 +42,8 @@ stdenv.mkDerivation rec { | |||||||
|   dontBuild = true; |   dontBuild = true; | ||||||
| 
 | 
 | ||||||
|   installPhase = '' |   installPhase = '' | ||||||
|     cat > $out <<EOF |     mkdir -p $out/bin | ||||||
|  |     cat > $out/bin/run <<EOF | ||||||
|     #!/bin/bash |     #!/bin/bash | ||||||
|     #SBATCH --job-name="${name}" |     #SBATCH --job-name="${name}" | ||||||
|     '' |     '' | ||||||
| @ -56,13 +58,11 @@ stdenv.mkDerivation rec { | |||||||
|     + optionalString (extra!=null) extra |     + optionalString (extra!=null) extra | ||||||
|     +'' |     +'' | ||||||
|      |      | ||||||
|     numactl -s |     ${numactl}/bin/numactl -s | ||||||
| 
 | 
 | ||||||
|     #!/bin/bash |     srun ${app}${binary} ${argv} | ||||||
|     exec ${app}${binary} ${argv} |  | ||||||
|     done |  | ||||||
|     EOF |     EOF | ||||||
| 
 | 
 | ||||||
|     chmod +x $out |     chmod +x $out/bin/run | ||||||
|   ''; |   ''; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user