I’m not sure if it is the case also with Java version, but during compilation PyTorch (1.9.0) BLAS auto detection selects BLIS first, although OpenBLAS exists. BLIS doesn’t have LAPACK support, therefore torch gives “LAPACK library not found in compilation” error. You can check this by looking at the BLAS section of the configuration summary and see if it is indicated as “BLAS: blis”. If it is the case, you can correct it by setting WITH_BLAS=open, or by editing cmake/Modules/FindBLAS.cmake and setting default value to “open” before compilation.
I think OpenBLAS should be checked before BLIS, or should overwrite BLIS if detected.