TorchGeo on EC2 with CUDA #1579
-
after hours of trying various configurations to set up an CUDA enabled EC2 instance for running a TorchGeo model, it keeps coming to a point that even after installing Nvidia drivers, native CUDA Toolkit and Conda cudatoolkit, - any advice on how to get CUDA available on Windows? or even better a known working setup? ideally, Windows would be great, Ubuntu could be good, but really anything out of the box will be much appreciated :-> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
short update: after using PIP for installing also torch and torchvision dependencies with However, when trying to run with the CUDA device getting either RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED , or, RuntimeError: CUDA error: an illegal memory access was encountered. (FWIW, I know it's not a pure TorchGeo issue, but hoping that someone from the TrochGeo community may have a suggestion) so just a short update. the question remains - anything out of the box will be much appreciated :-> |
Beta Was this translation helpful? Give feedback.
-
managed to run several epochs successfully :-> here are working instructions with EC2 Windows Server 2019 AMI on AWS P2.xlarge instance: CUDA setupneed to setup NVidia drivers, CUDA Toolkit and CuDNN. see https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-windows NOTE: some EC2 AMIs e.g., the one mentioned above, already come with the NVidia drvers installed. NVIDIA Driverssee 2.1.1. Installing NVIDIA Graphic Drivers
CUDA Toolkitsee 2.1.2. Installing the CUDA Toolkit for Windows
CuDNNsee 2.2. Downloading CuDNN for Windows
Conda environment setupsome installations are with Conda, some with PIP create Conda torch env
Install torchgeo with PIP
checks
HTH |
Beta Was this translation helpful? Give feedback.
managed to run several epochs successfully :->
here are working instructions with EC2 Windows Server 2019 AMI on AWS P2.xlarge instance:
CUDA setup
need to setup NVidia drivers, CUDA Toolkit and CuDNN. see https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#install-windows
NOTE: some EC2 AMIs e.g., the one mentioned above, already come with the NVidia drvers installed.
NVIDIA Drivers
see 2.1.1. Installing NVIDIA Graphic Drivers
check if drivers are already installed
con…