I would like to apply uncrustify (via beautify in the Atom editor and configuration file) to the CUDA code. However, I do not know how to tell uncrustify to recognize CUDA kernel calls that have the following structure:
kernelName <<<N,M>>> (arg0,arg1,...);
However, uncrustify has problems with <<< >>> and its application gives the following unpleasant result
kernelName << < N, M >> > (arg0,arg1,...);
I would like it to look more like a function call, and also avoid formatting from <<< to << < . Ideally, the result would look like
kernelName <<< N, M >>> (arg0,arg1, ...); // line break if argument list is too long
What arguments can be added to my config.cfg to achieve the above result?
Many thanks.
code-formatting cuda uncrustify
k1next
source share