Skip to content

Running jobs

João Faria edited this page Sep 16, 2020 · 3 revisions

TL;DR

Type

$ kima-run

to start running kima.

Using the kima-run script

This page assumes that you are using the pykima package.
With this package comes a handy script called kima-run which can be used to compile and run kima jobs.

This replaces the old (up to version 3) and boring combo make; ./run.

The script can be used as is, and it will try to compile and run kima in the current directory, and using 4 threads by default. Some extra options can be provided to kima-run:

  • to run the job in a different directory DIR use

    kima-run DIR
    
  • to change the number of threads use -t N

  • to run in the background (with less verbose output), use -b and possibly -o OUTPUT to define the name of the output file

  • for extra quiet runs (no terminal output at all), use the -q option

  • you can set a timeout, in seconds, after which the job will stop gracefully by using
    --timeout SEC

  • use -c to just compile and don't run

  • the argument -s SEED sets the random number seed, which can guarantee reproducible results

To get this information type kima-run -h.