.. _running: Running ======= This page gives information on how to run nekRS has been installed (see :ref:`installing` ) and appropriate input files have been generated (see :ref:`case`). nekrs and nekrs32 Native Running -------------- The most basic way of running nekRS is in the directory with all the appropriate files with the scenario name: .. code-block:: mpirun -np nekrs --setup .par Below are the command line arguments that can be used to further modifiy how nekRS is run. +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | Parameter | Short option | Options | Description | Required | +==================+==============+=====================================================+==================================================================================================+==========+ | ``--help`` | ``-h`` | None or ``par`` | Print help, either summary of command line argument | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--setup`` | ``-s`` | None, ``par`` or ``sess file`` | Specifies the location of files needed to initialise the simulation | Yes | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--build-only`` | ``-b`` | None or ``#procs`` | Initialise the simulation and run :ref:`just_in_time_compilation` only. | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--cimode`` | ``-c`` | None or ```` (N.B. If set must be >=0) | Runs specific CI tests if available in the chosen simulation (see :ref:`contributing`) | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--debug`` | ``-d`` | None | Run in debug mode, IE print values of many of the variables while running | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--backend`` | ``-t`` | ``CPU``, ``CUDA``, ``HIP``, ``DPCPP`` or ``OPENCL`` | Manually set the backend device for running | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ | ``--device-id`` | ``-i`` | ``id`` or ``LOCAL-RANK`` | Manually set OCCA device ID (I.E. for machines with multiple GPUs) or use ``LOCAL-RANK`` for CPU | No | +------------------+--------------+-----------------------------------------------------+--------------------------------------------------------------------------------------------------+----------+ .. _nekrs_scripts: MPI launch scripts ------------------ A number of scripts ship with nekRS itself and are located in the ``$NEKRS_HOME/bin`` directory (see :ref:`nekrs_home`). A brief summary of these scripts and their usage is as follows. * ``nrsmpi ``: run nekRS in parallel with ```` parallel processes for the case files that are prefixed with ``casename``. * ``nrsbmpi ``: same as ``nrsmpi``, except that nekRS runs in the background Queueing system --------------- **TODO**