ArrayFire on macOS

I am trying to use the ArrayFire package on macOS and the problem is that it cannot load the libaf library installed using Homebrew because it cannot find it. The only way I could make this work was to specify the environment variable DYLD_LIBRARY_PATH with the location of the library but this only works if I have the SIP protection of macOS disabled otherwise this environment variable has no effect. Is there some other way which does not require me to disable SIP?

looks abandoned to me

Have you considered using Metal.jl instead?

If I use this library instead then my application will be only capable to run on macOS.

That’s why we have GitHub - JuliaGPU/KernelAbstractions.jl: Heterogeneous programming in Julia .

Metal.jl is just one of many backends.


Thank you. I will take a look at that.