Running jobs/fr: Difference between revisions

Jump to navigation Jump to search
Updating to match new version of source page
No edit summary
(Updating to match new version of source page)
Line 337: Line 337:
=== Annulation de tâches dont les conditions de dépendance ne sont pas satisfaites ===
=== Annulation de tâches dont les conditions de dépendance ne sont pas satisfaites ===
Une tâche dépendante soumise avec <code>dependency=afterok:<jobid></code> attend que la tâche parent soit complétée avant de s'exécuter. Si la tâche parent s'arrête avant sa complétion (c'est-à-dire qu'elle produit un code de sortie non nul), la tâche dépendante ne sera jamais exécutée et elle est automatiquement annulée. Pour plus d'information sur la dépendance, voir [https://slurm.schedmd.com/sbatch.html sbatch].
Une tâche dépendante soumise avec <code>dependency=afterok:<jobid></code> attend que la tâche parent soit complétée avant de s'exécuter. Si la tâche parent s'arrête avant sa complétion (c'est-à-dire qu'elle produit un code de sortie non nul), la tâche dépendante ne sera jamais exécutée et elle est automatiquement annulée. Pour plus d'information sur la dépendance, voir [https://slurm.schedmd.com/sbatch.html sbatch].
==== Job cannot load a module ====
It is possible to see an error such as:
Lmod has detected the following error: These module(s) exist but cannot be
loaded as requested: "<module-name>/<version>"
    Try: "module spider <module-name>/<version>" to see how to load the module(s).
This can occur if the particular module has an unsatisfied prerequisite. For example
<source lang="console">
[name@server]$ module load gcc
[name@server]$ module load quantumespresso/6.1
Lmod has detected the following error:  These module(s) exist but cannot be loaded as requested: "quantumespresso/6.1"
  Try: "module spider quantumespresso/6.1" to see how to load the module(s).
[name@server]$ module spider quantumespresso/6.1
-----------------------------------------
  quantumespresso: quantumespresso/6.1
------------------------------------------
    Description:
      Quantum ESPRESSO is an integrated suite of computer codes for electronic-structure calculations and materials modeling at the nanoscale. It is based on density-functional theory, plane waves, and pseudopotentials (both
      norm-conserving and ultrasoft).
    Properties:
      Chemistry libraries/apps / Logiciels de chimie
    You will need to load all module(s) on any one of the lines below before the "quantumespresso/6.1" module is available to load.
      nixpkgs/16.09  intel/2016.4  openmpi/2.1.1
    Help:
      Description
      ===========
      Quantum ESPRESSO  is an integrated suite of computer codes
      for electronic-structure calculations and materials modeling at the nanoscale.
      It is based on density-functional theory, plane waves, and pseudopotentials
        (both norm-conserving and ultrasoft).
      More information
      ================
      - Homepage: http://www.pwscf.org/
</source>
In this case adding the line <code>module load nixpkgs/16.09 intel/2016.4 openmpi/2.1.1</code> to your job script before loading the "quantumespresso/6.1" will solve this problem.
==== Jobs inherit environment variables ====
By default a job will inherit the environment variables of the shell where the job was submitted (see the <code>--export</code> option on the [https://slurm.schedmd.com/sbatch.html sbatch man page] for more details about how to control how environment variables are inherited). Since the <code>module</code> commands operate on environment variables, changes made by using these commands will propagate to any jobs submitted from that shell and thus could affect the job's ability to load modules if there are missing prerequisites.


==État des tâches et priorité==
==État des tâches et priorité==
35,696

edits

Navigation menu