Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:advanced_job_management:interactive_jobs [2023/07/04 13:31] adminhabrok:advanced_job_management:interactive_jobs [2025/01/08 10:18] (current) – Fix broken link (thanks Jelte!) pedro
Line 1: Line 1:
 ====== Interactive jobs ====== ====== Interactive jobs ======
  
-As described in [[peregrine:job_management:scheduling_system#starting_tasks|the section about srun on the page about job scripts]], srun can be used in your job script to launch tasks. However, you can also use srun on the login nodes to run tasks in an interactive way on one of the compute nodes, without having to write a job script. The srun can take more or less the same arguments as sbatch, i.e. the same options you can put in your job script, allowing to specify the requirements for this interactive job.+As described in [[habrok:job_management:scheduling_system#starting_tasks|the section about srun on the page about job scripts]], srun can be used in your job script to launch tasks. However, you can also use srun on the login nodes to run tasks in an interactive way on one of the compute nodes, without having to write a job script. The srun can take more or less the same arguments as sbatch, i.e. the same options you can put in your job script, allowing to specify the requirements for this interactive job.
  
 This is a very simple example that demonstrates how it works, it will just run the command hostname on the allocated compute node: This is a very simple example that demonstrates how it works, it will just run the command hostname on the allocated compute node:
Line 23: Line 23:
 As the last line of this output shows, you are now running a shell on a compute node and you can start working. Do note that the more time you request for your job, the longer you might have to wait before your job will start. And since you do not know when exactly your job will start, this may not be very convenient. As the last line of this output shows, you are now running a shell on a compute node and you can start working. Do note that the more time you request for your job, the longer you might have to wait before your job will start. And since you do not know when exactly your job will start, this may not be very convenient.
  
-**N.B.: interactive jobs currently don't (always) use the software stack built for the allocated nodes, you can work around this by first running the following command after the job has started:**  +**N.B.: interactive jobs currently don't (always) use the software stack built for the allocated nodes, you can work around this by first running ''unset SW_STACK_ARCH && module restore'' after the job has started.**
-<code> +
-module --force purge && unset SW_STACK_ARCH && module load StdEnv'' after the job has started. +
-</code>+