Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2034

Remove AVX/AVX2 CPU support for CPU that doesn't have this instruction set

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2
    • 6.2
    • None
    • 0.5

      Document known issue with ND4J libraries and CPU AVX/AVX2 support.

      Known issue:
      libnd4j binary was built with AVX/AVX2 support, but current CPU doesn't have this instruction set. Exiting now...

      Check to be sure your processor has at least AVX support. For example, the Intel Xeon E5-2690 does have AVX support but not AVX2.

      Solution
      Exclude AVX2 libs:

      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>linux-x86_64-avx2</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>macosx-x86_64-avx2</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>windows-x86_64-avx2</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>linux-ppc64le-avx2</classifier>
      </dependency>
      

      Include libs:

      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>linux-x86_64</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>macosx-x86_64</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>windows-x86_64</classifier>
      </dependency>
      <dependency>
        <groupId>org.nd4j</groupId>
        <artifactId>nd4j-native</artifactId>
        <version>${dl4jVersion}</version>
        <classifier>linux-ppc64le</classifier>
      </dependency>
      

        Acceptance criteria

              rgange Richard Gange
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR