CUDA toolkit 11.5 and cuDNN 8.3.3.40 are correctly installed. I want to use GPU (on Windows 10) with DL4J.
In the dl4j-examples pom, when I change <nd4j.backend>nd4j-native</nd4j.backend> into <nd4j.backend>nd4j-cuda-11.5-platform</nd4j.backend> I receive the following exception while running e.g. IrisClassifier:
org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException: Please ensure that you have an nd4j backend on your classpath. Please see: https://deeplearning4j.konduit.ai/nd4j/backend
Would there be another page that explains how to configure the pom and what to put in the classpath to have the nd4j backend? Or simply get the advise here?
Running DL4J examples on CUDA works now (Windows 10).
Here is what I did:
Installed Microsoft Visual Studio 2019 Community version
installed the CUDA driver toolkit (11.6 - although 11.4 is supported by DL4J 1.0.0-M2.1)
compiled with Visual Studio 2019 some CUDA Samples to ensure CUDA is well installed (see for example those in C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.5\1_Utilities such as deviceQuery or bandwidthTest)
installed cuDNN that fits with the CUDA Toolkit version (I downloaded cuDNN v8.8.1 (March 8th, 2023), for CUDA 11.x.zip from cuDNN Archive Download, cuDNN Archive | NVIDIA Developer). In practice this consists in unzipping the directory and put it somewhere, adding each sub-directory in the environment variable path and copying the dlls, libs and h files in the CUDA directory (most of the time in C:\Programme or C:\Program Files) - see Installing cuDNN on Windows, Installation Guide :: NVIDIA cuDNN Documentation)
ensured that the pom contains in the tag: <nd4j.version>1.0.0-M2.1</nd4j.version>, <nd4j.backend>nd4j-cuda-11.6</nd4j.backend> and preferably the correct java version with <java.version>17</java.version> for my case. The pom shall also contain in the tag, inter alia