run-escript(1)
β¨ NAME β¨
run-escript β bestie, it's a launcher for programs and scripts that use the escript libraries π (you'll also see it filed under the manual name run-escript, from the esys Escript corner of the world, and honestly? iconic).
π SYNOPSIS π
run-escript [-n nn ] [-p np ] [-t nt ] [-f hostfile ] [-x ] [-V ] [-e ]
[-h ] [-v ] [-o ] [-c ] [-i ] [-b ] [ file ] [ ARGS ]
π OPTIONS π
okay so quick vibe check before we get into the flags πΈ β file is the name of a script, and ARGS are arguments for that script. escript will import your current environment variables, no cap. If you don't give it a file, then you get a python prompt instead (peep -i for the restrictions on that, iykyk). And now, the options, one by one, no skipping, periodt:
-nnnβ specifies the number of compute nodes nn to be used π₯. This option overwrites the value of theESCRIPT_NUM_NODESenvironment variable. If nn > 1 but escript was not compiled for MPI, then a warning is printed but execution is continued with nn = 1. The default value is 1.-pnpβ specifies the number of MPI processes per node β¨. The total number of processes to be used is nn times ns. This option overwrites the value of theESCRIPT_NUM_PROCSenvironment variable. If np > 1 but escript is not compiled for MPI a warning is printed but execution is continued with np = 1. The default value is 1.-tntβ the number of threads used per processes π§. This option overwrites the value of theESCRIPT_NUM_THREADSenvironment variable. If nt > 1 but escript is not compiled for OpenMP a warning is printed but execution is continued with nt = 1. The default value is 1.-fhostfileβ specify the name of a file with a list of host names π¦. Some systems require to specify the addresses or names of the compute nodes where MPI process should be spawned. The list of addresses or names of the compute nodes is listed in the file with the name hostfile. In order to avoid oversubsription the number of different hosts defined in hostfile must be equal to the number of requested compute nodes nn. The option overwrites the value of theESCRIPT HOSTFILEenvironment variable. By default value no host file is used.-cβ prints the information about the settings used to compile escript and stops execution π.-Vβ prints the version of escript and stops execution π.-hβ prints a help message and stops execution π.-iβ executesfileand switches to interactive mode after the execution is finished or an exception has occurred π . This option is useful for debugging a script. The option cannot be used if more than one process ( nn * np > 1) is used or if-bis used.-bβ do not invoke python π. This is used to run non-python programs.-eβ outputs export statements for the additional environment variables and commands used during escript execution β. This option is useful if users wish to execute scripts without using the escript command.-oβ switches on the redirection of output of processors with MPI rank greater than zero to the files"stdout_r.out"and"stderr_r.out"where r is the rank of the processor π. The option overwrites the value of theESCRIPT_CREATESTDFILESenvironment variable.-vβ prints some diagonstic information π.
ngl bestie, if you hit a warning about MPI or OpenMP not being compiled in, that's not you doing anything wrong β it just quietly drops back to 1 and keeps going π«Ά
and that's the whole page, fr fr π this was run-escript(1) from esys Escript β go forth and slay your scripts, mwah π β¨π
π¦ where this page comes from
- debian bookworm: python3-escript 5.6-4+b3 Β· ASL-2.0
- debian trixie: python3-escript 5.6-10+b1 Β· ASL-2.0
- ubuntu jammy: python3-escript 5.6-4build1 Β· ASL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms