From 0db8bb53d9e6eef40ed5c5fd1113520950241491 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl <alexfikl@gmail.com> Date: Sun, 23 Oct 2022 16:15:56 +0300 Subject: [PATCH] wrap lines in misc.rst --- doc/misc.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/misc.rst b/doc/misc.rst index afc41a74..8444b3bf 100644 --- a/doc/misc.rst +++ b/doc/misc.rst @@ -209,9 +209,17 @@ and then use the ``%%cl_kernel`` 'cell-magic' command. See `this notebook <http://nbviewer.ipython.org/urls/raw.githubusercontent.com/inducer/pyopencl/master/examples/ipython-demo.ipynb>`_ (which ships with PyOpenCL) for a demonstration. -You can pass build options to be used for building the program executable by using the ``-o`` flag on the first line of the cell (next to the ``%%cl_kernel`` directive). For example: `%%cl_kernel -o "-cl-fast-relaxed-math"``. +You can pass build options to be used for building the program executable by +using the ``-o`` flag on the first line of the cell (next to the ``%%cl_kernel`` +directive). For example:: -There are also line magics: ``cl_load_edit_kernel`` which will load a file into the next cell (adding ``cl_kernel`` to the first line) and ``cl_kernel_from_file`` which will compile kernels from a file (as if you copy-and-pasted the contents of the file to a cell with ``cl_kernel``). Both of these magics take options ``-f`` to specify the file and optionally ``-o`` for build options. + %%cl_kernel -o "-cl-fast-relaxed-math" + +There are also line magics: ``cl_load_edit_kernel`` which will load a file into +the next cell (adding ``cl_kernel`` to the first line) and ``cl_kernel_from_file`` +which will compile kernels from a file (as if you copy-and-pasted the contents of +the file to a cell with ``cl_kernel``). Both of these magics take options ``-f`` +to specify the file and optionally ``-o`` for build options. .. versionadded:: 2014.1 -- GitLab