luhenry / netlib

An high-performance, hardware-accelerated implementation of Netlib in Java
Other
64 stars 12 forks source link

build failure on jdk11 #5

Closed pyjhzwh closed 3 years ago

pyjhzwh commented 3 years ago

Hello, I tried to build it on jdk11 and use the pure implementation (to test autovectorization of JVM). But when I run $> mvn clean package, the build failed with error

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/yunjiep/benchmark/netlib/blas/src/main/java/dev/ludovic/netlib/blas/VectorBLAS.java:[30,28] package jdk.incubator.vector does not exist
[ERROR] /Users/yunjiep/benchmark/netlib/blas/src/main/java/dev/ludovic/netlib/blas/VectorBLAS.java:[31,28] package jdk.incubator.vector does not exist
[ERROR] /Users/yunjiep/benchmark/netlib/blas/src/main/java/dev/ludovic/netlib/blas/VectorBLAS.java:[32,28] package jdk.incubator.vector does not exist
[ERROR] /Users/yunjiep/benchmark/netlib/blas/src/main/java/dev/ludovic/netlib/blas/VectorBLAS.java:[33,28] package jdk.incubator.vector does not exist
[ERROR] /Users/yunjiep/benchmark/netlib/blas/src/main/java/dev/ludovic/netlib/blas/VectorBLAS.java:[37,24] cannot find symbol
  symbol:   class VectorSpecies
  location: class dev.ludovic.netlib.blas.VectorBLAS

Openjdk: is 11.0.9.0.7 OS: mac os 11.4 Since JDK11 does not support Vector API. I wonder how could I modify the pom.xml or code to make it build on jdk11. Thanks a lot!

luhenry commented 3 years ago

You need to use JDK 16+ to build this project. You can however use JDK 11 to run the resulting jar file.