Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayFire "Failed to load dynamic library" on Windows #267

Open
denkab opened this issue Sep 27, 2020 · 1 comment
Open

ArrayFire "Failed to load dynamic library" on Windows #267

denkab opened this issue Sep 27, 2020 · 1 comment

Comments

@denkab
Copy link

denkab commented Sep 27, 2020

HI!

I'm trying to enable ArrayFire with Julia on older machine with CPU backend, so I'm making it "simple" for ArrayFire to choose by setting ENV JULIA_ARRAYFIRE_BACKEND=CPU.

It's not working still...

julia> using ArrayFire ERROR: InitError: ArrayFire Error (501) : Failed to load dynamic library. Error in af_err __cdecl unified::setBackend(af_backend) In file src\api\unified\symbol_manager.cpp:245: Failed to load dynamic library. See http://www.arrayfire.com/docs/unifiedbackend.htm for instructions to set up environment for Unified backend. 0# af_is_real in af 1# af_is_real in af 2# 0x000000002D59CF3E

What can I try to solve this?

If I don't set the backend to CPU, the error is

ERROR: InitError: ArrayFire Error (501) : Failed to load dynamic library. Error in af_err __cdecl af_init(void) In file src\api\unified\device.cpp:47: ArrayFire couldn't locate any backends. 0# af_is_real in af 1# af_is_real in af 2# 0x000000002D60CF71

@denkab
Copy link
Author

denkab commented Sep 27, 2020

Possibly worth mentioning that OpenCL.jl is functional on the same set up, reporting CPU as the only available backend,

julia> cl.platforms() 1-element Array{OpenCL.cl.Platform,1}: OpenCL.Platform('AMD Accelerated Parallel Processing' @0x00007ffe95ebe188)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant