Coder Social home page Coder Social logo

Comments (5)

agibsonccc avatar agibsonccc commented on June 21, 2024

@anatoliy-balakirev during the build just specify -Djavacpp.platform=$YOUR_PLATFORM. This will avoid bundling a bunch of dependencies. See more here: https://deeplearning4j.konduit.ai/multi-project/how-to-guides/developer-docs/javacpp

from deeplearning4j.

anatoliy-balakirev avatar anatoliy-balakirev commented on June 21, 2024

@agibsonccc thanks for your response. Sorry, maybe my question was not clear enough. What I want is to build one jar, supporting both: linux-x86_64 and windows-x86_64. I.e., something similar to <artifactId>nd4j-native-platform</artifactId>, but with limited amount of platforms. The option you provided doesn't seem to support that.

from deeplearning4j.

treo avatar treo commented on June 21, 2024

When switching to using classifiers, I guess you had just the classifiers in there?
You would still need to keep the classifier-less nd4j-native dependency.

from deeplearning4j.

anatoliy-balakirev avatar anatoliy-balakirev commented on June 21, 2024

@treo thanks, that was indeed an issue. Adding this to the pom does the trick:

        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <version>1.0.0-M2.1</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <classifier>linux-x86_64</classifier>
            <version>1.0.0-M2.1</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native</artifactId>
            <classifier>windows-x86_64</classifier>
            <version>1.0.0-M2.1</version>
        </dependency>

P.S. Not sure if it should be as part of this issue, but would be great to update documentation with that info.

from deeplearning4j.

agibsonccc avatar agibsonccc commented on June 21, 2024

from deeplearning4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.