I think both problems reported so far indicate that ArrayFire is not installed or is not installed in the 'normal place'. The failure report should be made more clear.
I will be able to work on this later today. On Tue, Jan 25, 2022 at 11:25 AM Michail L. Liarmakopoulos < m.l.liarm...@gmail.com> wrote: > Hello, Eric, > > This is great news actually. I hope this project goes forward. > > That said, I've encountered an error when trying to run `init_jaf_'cpu'`, > after having installed with pacman the library: > > ``` > > load'~addons/math/arrayfire/arrayfire.ijs' > > man_jaf_'intro' > > *** intro > > J-ArrayFire cd bindings - https://arrayfire.org > > > arrayfire backend must be initialized before it can be used > > cpu - always available and uses cpu memory and cores > > cuda - available if you have suitable hardware and cuda installed > > opencl - available if you have suitable hardware and opencl installed > > > init_jaf_'cpu' NB. 'cpu' or 'cuda' or 'opencl' > > > tut_jaf_ '' NB. list tutorials > > tut_jaf_ 'basic' NB. run basic > > man_jaf_'' NB. man pages > > > init_jaf_'cpu' > > |domain error: init_jaf_ > > | afincpath=:jpath(getenv'AF_PATH') ,'/include' > > ``` Using j903 on Windows10: > > JVERSION > > Engine: j903/j64avx2/windows > > Release-a: commercial/2021-12-16T15:15:09 > > Library: 9.03.08 > > Qt IDE: 1.9.5s/5.15.2(5.15.2) > > Platform: Win 64 > > Installer: J903 install > > InstallPath: c:/program files/j903 > > Contact: www.jsoftware.com > > I'll try it out on my Linux machine too, maybe it's a Windows issue, who > knows. Best, > > Michail > > > > On Tue, Jan 25, 2022 at 4:56 PM Eric Iverson <eric.b.iver...@gmail.com> > wrote: > > > ~addons/math/arrayfire is a new addon for J903 and later. > > > > The addon allows high performance computing of matrix product > > and many other mathematical array operations. Multiple cpu > > cores and hardware such as Nvidia gpus are used as appropriate. > > > > Browse https://arrayfire.org for more info. > > > > The addon will prompt you for the ArrayFire software install if > > it is not already installed. > > > > Use pacman to install the addon. For example, > > load'pacman' > > 'install' jpkg 'math/arrayfire' > > > > Get started: > > load '~addons/math/arrayfire/arrayfire.ijs' > > man_jaf_ 'intro' > > ... > > init_jaf_ 'cpu' > > tut_jaf_ 'basic' NB. run basic tutorial > > ... > > man_jaf_ 'credits' NB. credit to some J-ArrayFire pioneers > > ... > > > > *** preliminary version > > We think this is an important step for J in high performance computing. > > If this proves to be the case, Jsoftware will actively pursue further > > development in this area. > > > > *** from the addon description > > cd bindings and utilities for ArrayFire shared library > > > > https://arrayfire.org > > > > "ArrayFire is a high performance software library for > > parallel computing with an easy-to-use API. Its array based > > function set makes parallel programming more accessible." > > > > J-ArrayFire cd bindings make it easy to have > > high performance computing for things like matrix multiply > > with cpu cores, Nvidia gpus, and opencl. > > *** > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > -- > Michail L. Liarmakopoulos, MSc > Linkedin <https://www.linkedin.com/in/mlliarm/> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm