Cuda error during run the example

Yes, I just not want to install CUDA and then using Redist.

I’m resolved it! Now my example working on GeForce3090!!!

Part of My POM:

org.example
dl4jCuda
1.0-SNAPSHOT

    <dependency>
        <groupId>org.deeplearning4j</groupId>
        <artifactId>deeplearning4j-cuda-11.0</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>org.deeplearning4j</groupId>
        <artifactId>deeplearning4j-core</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </dependency>

Also you need build nd4j-cuda-11.0 from sources and add all *jar and dll files to your project!

1 Like

Sounds good, can you share your nd4j-cuda-11.0 build ?

Оf course… jars
DLLs
I used to build Cuda ToolKit 11.1, CuDnn 8, but the file name turned out to be 11.0, I think you need to use CUDA 11.1. Dll files also present inside in jar, but cannot founds… I add dlls to root directory of project

1 Like

Can you upload linux version jar?

For CUDA 11.1, please use the snapshots for those binaries:

@saudet Do you mean to use redist version? I use installed version now, so need the non-redist
version of jar.

in snapshots missing file:

Cannot resolve org.nd4j:nd4j-cuda-11.0:1.0.0-SNAPSHOT
and
from
https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.nd4j&a=nd4j-cuda-11.0&v=1.0.0-SNAPSHOT&e=jar&c=windows-x86_64

404 - Not Found
Path /org/nd4j/nd4j-cuda-11.0/1.0.0-SNAPSHOT/nd4j-cuda-11.0-1.0.0-20201117.023522-181-windows-x86_64.jar not found in local storage of repository “Snapshots” [id=snapshots]

and this solution, in the end, does not work

No, you’ll need to build from source.

Right, for ND4J itself, you’ll need to build from source.

Yes, I can… libs
part of me POM file

<dependencies>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-cuda-11.0</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-cuda-11.0</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-ui</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>
  </dependencies>

Now I checked! It works! Hurray!)) Interesting, but the same code, the same data… on Windows, it works a little faster - one iteration of the epoch on Windows is 25 seconds, on Ubuntu-30 seconds!!
on CPU (I7 10700,Win10) 25 min… :grin:

Снимок экрана от 2020-11-21 11-01-08|690x388

Thanks.

Thanks Vladimir with your files, it works ok on windows and rtx 3090