Hi,
I tried out the add-on, it looks very promising!

After managing to install ArrayFire (apparently the logical "apt install"
didn't work), I tried the basic tutorial and found the following line
causes J to segfault when using the opencl backend:

display_jaf_ afai        NB. get AF text display of afai data

Using the cpu backend it works fine.

I ran through the tutorials, and noted down the following:
As a minor note, there's a typo in the basic lab "modadic" and there's a
duplicate example for addition.

In the gridxy tutorial, there is a 3 in the definition of gridxy that
should be replaced with ' ,n, ' in order to make it work for arguments
other than 3.

There seems to be something off with the sparse example, I get the
following:
   h,.r
┌────────┬──────────────────────────┐
│values  │4 12 11 5 10 7 8 1 3 6 2 9│
├────────┼──────────────────────────┤
│rows    │0 2 3 5 5 5 6 9 9 10 12   │
├────────┼──────────────────────────┤
│cols    │8 9 1 0 2 9 3 5 6 4 6 9   │
├────────┼──────────────────────────┤
│1 is CSR│1                         │
├────────┼──────────────────────────┤
│af type │2                         │
├────────┼──────────────────────────┤
│rank    │2                         │
├────────┼──────────────────────────┤
│af shape│10 10 1 1                 │
└────────┴──────────────────────────┘
   data
0  0  0 0 0 0 0 0 4 12
0 11  0 0 0 0 0 0 0  0
5  0 10 0 0 0 0 0 0  0
0  0  0 0 0 0 0 0 0  0
0  0  0 0 0 0 0 0 0  0
0  0  0 0 0 0 0 0 0  7
0  0  0 8 0 1 3 0 0  0
0  0  0 0 0 0 0 0 0  0
0  0  0 0 6 0 0 0 0  0
0  0  0 0 0 0 2 0 0  9

in which the rows and columns returned by getsparse_jaf_ do not correspond
to the data (in rows, there's a 10 and 12, which shouldn't be possible for
a 10x10 matrix).
Strangely enough, the assertion following those statements holds...

I'm curious where this development is going to lead to, and how people are
going to make use of it. Is it the idea to, at a certain point, introduce
this in the core language? Or provide a sort of transpiler from (perhaps a
subset of) J code to the ArrayFire version?

Best regards,
Jan-Pieter

Op wo 26 jan. 2022 om 17:42 schreef Eric Iverson <eric.b.iver...@gmail.com>:

> Apologies for the rough start. The development was done in linux with
> arrayfire installed and not enough attention was paid to other platforms or
> new users. The addon has been updated.
>
> Raul: You were on macOS, which had not been tested at all. It should work
> now if arrayfire is installed in folder /opt/arrayfire.
>
> Michail: You were on windows and it looks as if arrayfire was not
> installed. There is now a more informative failure for that case. It should
> work once arrayfire is installed.
>
> Pascal: The families.ijs bug has been fixed.
>
> Please update the addon and try again.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to