I have down loaded arrayfire to my Mac book and the install placed the
libraries in: /usr/local/lib.
I downloaded JFire scripts from Pascal’s git site to the directory:
home/downloads/jfire-master
I created a arrayfire.settings file in the jfire-master directory and its
contents are as follows:
/usr/local/lib
1 0 1
0 0 0
I had to modify the set up in arrayfire.ijs to create the appropriate naming
paths and placed smoutput statements in for when I load the jfire.ijs script
and the output appears to have the proper full path name for the arrayfire
libraries:
I get the boxed arrayfire settings
│/usr/local/lib│1 0 1│0 0 0│’
And the following output statements with regards to locals and the dynamic link
library
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafcpu.dylib
arrayfire.ijs: coname returns: afcpu
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafcpu.dylib
arrayfire.ijs: coname returns: afopencl
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafopencl.dylib
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafcpu.dylib
arrayfire.ijs: coname returns: afcpu
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafcpu.dylib
arrayfire.ijs: coname returns: afopencl
arrayfire.ijs: libAFmainlib = /usr/local/lib/libafopencl.dylib
AFpath_base_ pathstr to change Arrayfire config
When I try to do the simple example from Pascal’s wiki page:
P =. ('afcpu';0) conew ‘afdevice'
I get the following domain error:
|domain error: cd
| 1{:: af_set_device NUMDEVICES|y
cder’’ returns 1 0 which is a file not found error
That’s why I put in the smoutput statements to make sure I had the proper file
pathname with no spaces.
Anyone have any experience with dll access on the Mac have any ideas of what
might be wrong?
Tom McGuire
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm