How to use nvcc on petalinux?

I want to compile cuda code on petalinux of embedded system. is there any example to install cuda toolkit and nvcc compiler on petalinux?

petalinux isn’t a supported environment for CUDA development