# ArrayFire on macOS

**URL:** https://discourse.julialang.org/t/arrayfire-on-macos/105181
**Category:** General Usage
**Tags:** question
**Created:** [October 19, 2023, 12:30pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181 "2023-10-19T12:30:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)
#### Post date: [October 19, 2023, 12:30pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/1 "2023-10-19T12:30:51Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 19, 2023, 12:35pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/2 "2023-10-19T12:35:01Z")

</div>

> **[GitHub - JuliaGPU/ArrayFire.jl: Julia wrapper for the ArrayFire library](https://github.com/JuliaGPU/ArrayFire.jl)**
>
> Julia wrapper for the ArrayFire library. Contribute to JuliaGPU/ArrayFire.jl development by creating an account on GitHub.

looks abandoned to me

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [October 19, 2023, 12:39pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/3 "2023-10-19T12:39:53Z")

</div>

Have you considered using Metal.jl instead?

> **[GitHub - JuliaGPU/Metal.jl: Metal programming in Julia](https://github.com/JuliaGPU/Metal.jl)**
>
> Metal programming in Julia. Contribute to JuliaGPU/Metal.jl development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)
#### Post date: [October 19, 2023, 1:47pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/4 "2023-10-19T13:47:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [October 19, 2023, 1:48pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/5 "2023-10-19T13:48:59Z")

</div>

That’s why we have [GitHub - JuliaGPU/KernelAbstractions.jl: Heterogeneous programming in Julia](https://github.com/JuliaGPU/KernelAbstractions.jl) .

Metal.jl is just one of many backends.

See [https://juliagpu.org/](https://juliagpu.org/)

---

<div class="post-metadata">

### Author: ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)
#### Post date: [October 19, 2023, 1:50pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181/6 "2023-10-19T13:50:00Z")

</div>

Thank you. I will take a look at that.
