diff --git a/docs/source/magics.rst b/docs/source/magics.rst index 2073f35..58823a5 100644 --- a/docs/source/magics.rst +++ b/docs/source/magics.rst @@ -21,6 +21,7 @@ Usage - ``%%cuda``: Compile and run this cell. - ``%%cuda -p``: Also runs the Nsight Compute profiler. - ``%%cuda -p -a ""``: Also runs the Nsight Compute profiler. + - ``%%cude -c "`_ +-c, --compiler-args + String. Optional compiler arguments that can be space separated + by wrapping them in double quotes. They will be passed to "nvcc". + See all options here: + `NVCC Options `_ + + .. note:: If both "\-\-profile" and "\-\-timeit" are used then no profiling is done. @@ -47,10 +55,11 @@ Examples -------- :: - # compile, run, and profile the code in the cell with the Nsight - # compute profiler while collecting only metrics from the - # "MemoryWorkloadAnalysis" section. - %%cuda --profile --profiler-args "--section MemoryWorkloadAnalysis" + # compile, run, and profile the code in the cell with the Nsight compute + # profiler while collecting only metrics from the "MemoryWorkloadAnalysis" + # section; also provides the "--optimize 3" option to "nvcc" during + # compilation to optimize host code + %%cuda -p -a "--section MemoryWorkloadAnalysis" -c "--optimize 3" ------