CUDA itself is just for GPU compute in general. The CUDA-based cuDNN library is where the neural net support is - the forward and backward pass kernels for convolution, activation functions, etc, etc (nowadays including LLM support).
When Alex Krizhevsky wrote AlexNet (the 2012 ImageNet entry that kicked off the deep learning revolution), he used CUDA (since cuDNN did not exist) - writing all his kernels by hand.