Exception in thread "main" ai.djl.engine.EngineException: Failed to load MXNet native library #1493
Replies: 2 comments 1 reply
-
@AngshumanChakraborty
The message means the CUDA driver is not matching the CUDA API, DJL will fallback to use CPU. If the gradle command line works, that means eclipse didn't import the gradle project properly. I'm not familiar with eclipse. You might want to consult eclipse experts. Based on the exception, it seems Can you check:
|
Beta Was this translation helpful? Give feedback.
-
DJL compile target is set to java 8, but you should be able to run/build DJL using JDK 11. Are you using gradlew to run the gradle task? gradlew will download the supported gradle version for your project. |
Beta Was this translation helpful? Give feedback.
-
I am new to DJL and gradle. I wanted to try out djl. So I got 0.16.0-SNAPSHOT. I imported it into eclipse version rcp-2019-03. I tried running /examples/src/main/java/ai/djl/examples/training/TrainMnist.java and received the following error message.
But when I run the same example from the command line by executing
./gradlew run -Dmain=ai.djl.examples.training.TrainMnist
I got 96.93 percent validation accuracy at the end of the second epoch. It was success. But I cannot do the same from within eclipse. I am using eclipse 16.04 x86_64. Although I have a CUDA GPU and CUDA 10.2 installed but CUDA driver not properly installed. Here I just want to run djl on CPU only.
Beta Was this translation helpful? Give feedback.
All reactions