Cuda advanced

TODO