forked from rarias/jungle
		
	creams: avoid race condition
Ensure only one Slurm process performs environment operations
This commit is contained in:
		
							parent
							
								
									938246322f
								
							
						
					
					
						commit
						1aa0e77157
					
				| @ -81,8 +81,11 @@ let | |||||||
|       stages.exec { |       stages.exec { | ||||||
|         inherit nextStage; |         inherit nextStage; | ||||||
|         env = '' |         env = '' | ||||||
|           cp -r ${input}/SodTubeBenchmark/* . |           # Only the MPI rank 0 will copy the files | ||||||
|           chmod +w -R . |           if [ $SLURM_PROCID == 0 ]; then | ||||||
|  |             cp -fr ${input}/SodTubeBenchmark/* . | ||||||
|  |             chmod +w -R . | ||||||
|  |           fi | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -79,8 +79,11 @@ let | |||||||
|       stages.exec { |       stages.exec { | ||||||
|         inherit nextStage; |         inherit nextStage; | ||||||
|         env = '' |         env = '' | ||||||
|           cp -r ${input}/SodTubeBenchmark/* . |           # Only the MPI rank 0 will copy the files | ||||||
|           chmod +w -R . |           if [ $SLURM_PROCID == 0 ]; then | ||||||
|  |             cp -fr ${input}/SodTubeBenchmark/* . | ||||||
|  |             chmod +w -R . | ||||||
|  |           fi | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -75,8 +75,11 @@ let | |||||||
|       stages.exec { |       stages.exec { | ||||||
|         inherit nextStage; |         inherit nextStage; | ||||||
|         env = '' |         env = '' | ||||||
|           cp -r ${input}/SodTubeBenchmark/* . |           # Only the MPI rank 0 will copy the files | ||||||
|           chmod +w -R . |           if [ $SLURM_PROCID == 0 ]; then | ||||||
|  |             cp -fr ${input}/SodTubeBenchmark/* . | ||||||
|  |             chmod +w -R . | ||||||
|  |           fi | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -66,8 +66,11 @@ let | |||||||
|       stages.exec { |       stages.exec { | ||||||
|         inherit nextStage; |         inherit nextStage; | ||||||
|         env = '' |         env = '' | ||||||
|           cp -r ${input}/SodTubeBenchmark/* . |           # Only the MPI rank 0 will copy the files | ||||||
|           chmod +w -R . |           if [ $SLURM_PROCID == 0 ]; then | ||||||
|  |             cp -fr ${input}/SodTubeBenchmark/* . | ||||||
|  |             chmod +w -R . | ||||||
|  |           fi | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pedro Martinez
						Pedro Martinez