nvcc
is not used to run programs. It is a compiler driver. When a cuda program gets compiled/linked/built, it becomes an ordinary executable.
We use ordinary methods (based on OS) to run these executables.
When setting up a machine for CUDA usage, it may be useful to refer to the setup instructions for the OS type. These documents explain how to build (compile) the CUDA samples as well.