Skip to content
Snippets Groups Projects
Commit ecce3203 authored by Alex Rothberg's avatar Alex Rothberg
Browse files

Docs for new line magics

parent 09623e07
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,8 @@ and then use the ``%%cl_kernel`` 'cell-magic' command. See `this notebook ...@@ -39,6 +39,8 @@ and then use the ``%%cl_kernel`` 'cell-magic' command. See `this notebook
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: `%%cl_kernel -o "-cl-fast-relaxed-math"``.
There are also line magics: ``cl_load_kernel`` which will load a file into the next cell (adding ``cl_kernel`` to the first line) and ``cl_run_kernel`` which will compile kernels from a file (as if you copy-and-pasted the contents of the file to a cell with ``cl_kernel``). Boths of these magics take options ``-f`` to specify the file and optionally ``-o`` for build options.
.. versionadded:: 2014.1 .. versionadded:: 2014.1
Guidelines Guidelines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment