MXNet maven GPU error on Windows OS. #2412
Replies: 3 comments 1 reply
-
pom.xml
|
Beta Was this translation helpful? Give feedback.
-
Can you provide your CUDA version? A few thing to point out:
Here is an exmaple of pom file:
|
Beta Was this translation helpful? Give feedback.
-
MXNet doesn't have CU11.7 support, you have to install CUDA 11.2 to use MXNet. mxnet-native-xxx, pytorch-native-xxx package is designed for offline distribution. If you just want to run it you don't need them. By default, DJL will detect your OS and download proper package for you. If DJL download CPU version of native package, that means there is no GPU native package for your system. |
Beta Was this translation helpful? Give feedback.
-
I want to use DJL engine maven with Cuda on Windows PC.
My env is
Windows 10, AMD cpu 64bit, Zulu 64bit JVM, Nvidia Titan X GPU, maven
I run ok with MXNet cpu maven.
but, runtime error with MXNet GPU engine maven :
[11:59:02] C:\Users\Administrator\kimbergz\b4\src\imperative./imperative_utils.h:93: GPU support is disabled. Compile MXNet with USE_CUDA=1 to enable GPU support.
Exception in thread "main" ai.djl.engine.EngineException: MXNet engine call failed: MXNetError: GPU is not enabled
Stack trace:
File "..\src\resource.cc", line 167
--------- code --------------------------
`
public class DjlMxnetGpu {
public static void main(String[] args) throws IOException, TranslateException {
Engine engine = new MxEngineProvider().getEngine();
System.out.println("engine="+engine);
String engineName = engine.getEngineName();
}`
std out msg :
engine=MXNet:1.8.0, capabilities: [
SIGNAL_HANDLER,
LAPACK,
BLAS_OPEN,
OPENMP,
OPENCV,
MKLDNN,
]
MXNet Library: C:\Users\java.djl.ai\mxnet\1.8.0-mkl-win-x86_64\mxnet.dll
engine device = cpu()
my dev=gpu(0)
model=Model (
Name: mlp
Data Type: float32
)
[11:59:02] C:\Users\Administrator\kimbergz\b4\src\imperative./imperative_utils.h:93: GPU support is disabled. Compile MXNet with USE_CUDA=1 to enable GPU support.
Exception in thread "main" ai.djl.engine.EngineException: MXNet engine call failed: MXNetError: GPU is not enabled
Stack trace:
File "..\src\resource.cc", line 167
Beta Was this translation helpful? Give feedback.
All reactions