# Options when running kernels

**URL:** <https://pyfr.discourse.group/t/options-when-running-kernels/1142>\
**Category:** Development\
**Created:** [31 July 2024 09:58 UTC](https://pyfr.discourse.group/t/options-when-running-kernels/1142 "2024-07-31T09:58:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhenyang](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@Zhenyang](https://pyfr.discourse.group/u/Zhenyang)\
**Post date:** [31 July 2024 09:58 UTC](https://pyfr.discourse.group/t/options-when-running-kernels/1142/1 "2024-07-31T09:58:51Z")

</div>

Hi,

I wonder what is the difference between `run_kernels` and `run_graph`? Is that just running a single kernel and a batch of them?

Regards,  
Zhenyang

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [31 July 2024 12:44 UTC](https://pyfr.discourse.group/t/options-when-running-kernels/1142/2 "2024-07-31T12:44:17Z")

</div>

A graph is a collection of kernels along with associated dependency information. This is what `run_graph` executes. In order to use this you need to first construct a graph. If you just have a simple list of kernels then `run_kernels` can be used.

Regards, Freddie.
