groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sterg <st...@teiemt.gr>
Subject Re: Static imports seem to win over a method in closure's delegate
Date Fri, 12 Apr 2019 09:15:00 GMT
Hi all,


I tried to use in GroovyLab ?(https://github.com/sterglee/GroovyLab) the 
ND4j Java scientific library 
(https://github.com/deeplearning4j/deeplearning4j) , by placing the 
corresponding .jar file at the classpath of GroovyShell.


Unfortunately, it has problem to initialize the backends (i.e. native 
code, e.g. OpenBLAS, Intell MKL, NVIDIA CUDA etc),

and code such as


x= org.nd4j.linalg.factory.Nd4j.rand(9,9)

fails.


With Java9's JShell such code works and it is possible to work with the 
ND4j in a scripting MATLAB like style.

But also by using the JShell's API from GroovyLab,

I have the same problem as with GroovyShell, i.e. backend initialization 
failure.

Also with GroovyConsole the backend isn't properly initialized.


Any opinion about the problem?


Best Regards


Stergios



Mime
View raw message