# Nd4j-cuda-11.2-platform not available for m2

**URL:** <https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801>\
**Category:** ND4J\
**Created:** [March 12, 2022, 7:20pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801 "2022-03-12T19:20:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajmakoni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/ajmakoni/32/497_2.png) [@ajmakoni](https://community.konduit.ai/u/ajmakoni)\
**Post date:** [March 12, 2022, 7:20pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/1 "2022-03-12T19:20:28Z")

</div>

Good day @agibsonccc ,  
I am try to use dl4j m2. This is the error am getting:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/48c8868b4c42dc74c0db46de3ed51f5e819504bf.jpeg)

Here is my sample pom.xml file

```auto
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>training</groupId>
  <artifactId>training</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <release>17</release>
        </configuration>
      </plugin>
      <plugin>
  <groupId>kr.motd.maven</groupId>
  <artifactId>os-maven-plugin</artifactId>
  <version>1.7.0</version>
  <executions>
    <execution>
      <phase>initialize</phase>
      <goals>
        <goal>detect</goal>
      </goals>
    </execution>
  </executions>
</plugin>

    </plugins>
    
  </build>
  <properties>
  		<nd4j.cpu.backend>nd4j-native-platform</nd4j.cpu.backend>
  		<nd4j.cpu.backend2>nd4j-native</nd4j.cpu.backend2>
        <nd4j.gpu.backend>nd4j-cuda-11.2-platform</nd4j.gpu.backend> 
        <!-- <cuda.redist.10.1.version>10.1-7.6-1.5.2</cuda.redist.10.1.version> -->
        <cuda.redist.11.2.version>11.2-8.1-1.5.5</cuda.redist.11.2.version>
        <dl4j.version>1.0.0-M2</dl4j.version>
        <ffmpeg.version>4.1-1.4.4</ffmpeg.version>
        <javacv.version>1.5.5</javacv.version>
        <logback.version>1.1.7</logback.version> 
        <jackson.version>2.10.2</jackson.version>
    </properties>
    <repositories>
     <repository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy> <!-- Optional, update daily -->
            </snapshots>
        </repository>
        <repository>
            <id>M2</id>
            <url>https://s01.oss.sonatype.org/content/repositories/orgdeeplearning4j-1019</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
<repository>
            <id>M2-1</id>
            <url>https://s01.oss.sonatype.org/content/repositories/orgdeeplearning4j-1032</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
   <repository>
            <id>M2-2</id>
            <url>https://s01.oss.sonatype.org/content/repositories/orgdeeplearning4j-1034</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>
    
    
    <dependencies>
  	<dependency>
         <groupId>org.bytedeco</groupId>
         <artifactId>opencv-platform</artifactId>
         <version>4.5.1-1.5.5</version>
     </dependency>
       <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>${nd4j.cpu.backend}</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>${nd4j.gpu.backend}</artifactId>
            <version>${dl4j.version}</version>
        </dependency>  
        
         <!-- https://mvnrepository.com/artifact/org.bytedeco/cuda-platform-redist -->
         <!-- 
		<dependency>
		    <groupId>org.bytedeco</groupId>
		    <artifactId>cuda-platform-redist</artifactId>
		    <version>${cuda.redist.10.2.version}</version>
		</dependency>    
        -->
               
        <!-- https://mvnrepository.com/artifact/org.nd4j/nd4j-common -->
		<dependency>
		    <groupId>org.nd4j</groupId>
		    <artifactId>nd4j-common</artifactId>
		    <version>${dl4j.version}</version>
		</dependency>
        
        <dependency>
            <groupId>org.datavec</groupId>
            <artifactId>datavec-api</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.datavec</groupId>
            <artifactId>datavec-data-image</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.datavec</groupId>
            <artifactId>datavec-local</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-datasets</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-ui</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-zoo</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <!-- ParallelWrapper & ParallelInference live here -->
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-parallel-wrapper</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
    
    	<!-- Log dependency -->
		<dependency>
		    <groupId>org.slf4j</groupId>
		    <artifactId>slf4j-api</artifactId>
		    <version>1.7.25</version>
		</dependency>
                                                       
        <dependency>                                                            
            <groupId>ch.qos.logback</groupId>                                   
            <artifactId>logback-classic</artifactId>                            
            <version>${logback.version}</version>                               
        </dependency>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-utility-iterators</artifactId>
            <version>${dl4j.version}</version>
        </dependency>

        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-modelimport</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        
        <!-- https://mvnrepository.com/artifact/org.bytedeco/openblas-platform -->
        <!--  
		<dependency>
		    <groupId>org.bytedeco</groupId>
		    <artifactId>openblas-platform</artifactId>
		    <version>0.3.9-1.5.3</version>
		</dependency>
		-->
        <dependency>
           <groupId>org.bytedeco.javacpp-presets</groupId>
           <artifactId>ffmpeg</artifactId>
           <version>${ffmpeg.version}</version>
   	    </dependency>
   	    <dependency>
		    <groupId>org.bytedeco</groupId>
		    <artifactId>javacpp</artifactId>
		    <version>1.5.5</version>
		  </dependency>
   	    <!-- Jackson dependencies -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>${jackson.version}</version>
        </dependency>
        <dependency>
          <groupId>com.fasterxml.jackson.core</groupId>
		  <artifactId>jackson-databind</artifactId>
		  <version>${jackson.version}</version>
        </dependency>
                
          <!-- 
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-cuda-10.1</artifactId>
            <version>${dl4j.version}</version>
        </dependency>
        <dependency>
		    <groupId>org.deeplearning4j</groupId>
		    <artifactId>deeplearning4j-cuda-10.1</artifactId>
		    <version>${dl4j.version}</version>
		</dependency> 
		    -->
     
  </dependencies>
</project>

```

Is M2 missing ND4J-cuda-11.2-platoform?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [March 13, 2022, 6:33am UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/2 "2022-03-13T06:33:35Z")

</div>

@ajmakoni we didn’t publish cuda 11.2 in general. It’s been difficult to maintain 2. You can use cuda 11.4 now.

---

<div class="post-metadata">

**Author:** ![ccjernigan](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@ccjernigan](https://community.konduit.ai/u/ccjernigan)\
**Post date:** [March 31, 2022, 12:47pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/3 "2022-03-31T12:47:28Z")

</div>

Is -platform published for the M2 release?

Looking on Maven Central, I found [nd4j-cuda-11.4-preset](https://search.maven.org/artifact/org.nd4j/nd4j-cuda-11.4-preset/1.0.0-M2/jar) but not nd4j-cuda-11.4-platform. Was “platform” renamed to “preset” in the M2 release, or does “preset” mean something else?

Thanks for helping clarify.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [March 31, 2022, 12:53pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/5 "2022-03-31T12:53:14Z")

</div>

@ccjernigan ah it looks like the platform module never got published. Let me get to that next week.  
For now just uses the -platform pom (which is just a bill of materials anyways).

Sorry the cuda builds on github actions are a bit inconsistent so sometimes manual intervention is needed and details are missed. Better automation is a goal but in my experience is hard to do with the sonatype releases.

---

<div class="post-metadata">

**Author:** ![ccjernigan](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@ccjernigan](https://community.konduit.ai/u/ccjernigan)\
**Post date:** [July 1, 2022, 7:58pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/6 "2022-07-01T19:58:38Z")

</div>

Are you still planning to resolve this issue? I don’t see the platform artifact published yet on Maven Central and this is a blocker for me.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [July 1, 2022, 11:39pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/7 "2022-07-01T23:39:10Z")

</div>

@ccjernigan sorry never got around to this. Thanks for the ping. I ended up prioritizing internal customers/users and the next release.

The specific problem around the cuda builds was the slow infrastructure and error prone waiting that happens with github actions.

I know you as an end user just care whether it’s there or not but the underlying infra there forces me to make a trade off on my own time as well as just prioritizing problems like this.

A lot of this came down to cuda’s compilation time causing github actions to time out. This is much better with the cuda 11.6 release and later. We also ended up moving on from cuda 11.2.

What I’ll try to do at least is see if we can get the module published. I made the cuda build more flexible to allow for different cuda versions to be specified which will allow me to at least build cuda 11.2 from the build infra. Note that from next release we’ll be only publishing cuda 11.4 and 11.6

In the mean time, -platform modules aren’t mandatory just a quality of life improvement. You can just specify cuda-11.2 classifiers individually as well. In that case you just need to setup specifying cuda and other native dependencies as declared in the -platform pom here:

> <https://github.com/eclipse/deeplearning4j/blob/61633eac42791808e8b075463f6f37fe097bfb1b/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda-platform/pom.xml#L78>

If you’d like I can at least help you with the workaround while I see how the cuda build goes.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [July 3, 2022, 10:21am UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/8 "2022-07-03T10:21:11Z")

</div>

@ccjernigan you can find nd4j-cuda-11.2-platform in maven central now. I managed to setup a more robust github actions profile which worked to build the right version and deploy it. Thanks for the ping. Hopefully that addresses the issues.  
Let me know if there’s anything else. Please also do follow up with me if something drops.

---

<div class="post-metadata">

**Author:** ![SidneyLann](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/sidneylann/32/367_2.png) [@SidneyLann](https://community.konduit.ai/u/SidneyLann)\
**Post date:** [July 4, 2022, 9:43am UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/9 "2022-07-04T09:43:01Z")

</div>

```
<properties>
	<nd4j.backend>nd4j-cuda-11.6</nd4j.backend>
	<java.version>17</java.version>
	<dl4j.version>1.0.0-M2</dl4j.version>
</properties>
<dependencies>
	<dependency>
		<groupId>org.nd4j</groupId>
		<artifactId>${nd4j.backend}</artifactId>
		<version>${dl4j.version}</version>
	</dependency>
	<dependency>
		<groupId>org.nd4j</groupId>
		<artifactId>${nd4j.backend}</artifactId>
		<version>${dl4j.version}</version>
		<classifier>linux-x86_64</classifier>
	</dependency>

```

When compile for above setting in Windows, maven will try to download the jars of windows version also, but there are no the jars of windows version in [repo1.maven.org/maven2](http://repo1.maven.org/maven2), how to do to only try to download the jars of linux version?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [July 4, 2022, 9:53am UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/10 "2022-07-04T09:53:05Z")

</div>

@SidneyLann -Djavacpp.platform=linux-x86\_64 in your maven build. Same as always.

---

<div class="post-metadata">

**Author:** ![SidneyLann](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/sidneylann/32/367_2.png) [@SidneyLann](https://community.konduit.ai/u/SidneyLann)\
**Post date:** [July 4, 2022, 12:16pm UTC](https://community.konduit.ai/t/nd4j-cuda-11-2-platform-not-available-for-m2/1801/11 "2022-07-04T12:16:12Z")

</div>

Yes, it work. Thanks.
