I completely followed all instructions in the following URLs in order.
1. Installing Prerequisite Products
https://www.mathworks.com/help/releases/R2021a/gpucoder/gs/install-prerequisites.html
2. Setting Up the Prerequisite Products
https://www.mathworks.com/help/releases/R2021a/gpucoder/gs/setting-up-the-toolchain.html
I also restarted my Windows 10 OS in order to be able to start using the new environment variables which I had set with the above 2) manual.
But I get the following errors when using "coder.checkGpuInstall".
CUDA Environment : FAILED (Unable to find the 'CUDA_PATH' environment variable. Set 'CUDA_PATH' to point to the root directory of an installed CUDA SDK.)
cuDNN Environment : FAILED (Unable to find the 'NVIDIA_CUDNN' environment variable. Set 'NVIDIA_CUDNN' to point to the root directory of a NVIDIA cuDNN installation.)
Best Answer