arrayfire / arrayfire-python

Python bindings for ArrayFire: A general purpose GPU library.

Home Page:https://arrayfire.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Path error on MacOS (easy fix!)

miketrumpis opened this issue · comments

I installed the ArrayFire "pkg" installer for v3.6.4, which installs to /opt/arrayfire. After a long time trying to debug my "RuntimeError: Could not load any ArrayFire libraries.", I realized that the hard-coded path is simply wrong!

elif platform_name == 'Darwin':
## OSX specific setup
pre = 'lib'
post = '.' + _VER_MAJOR_PLACEHOLDER + '.dylib'
if AF_SEARCH_PATH is None:
AF_SEARCH_PATH='/usr/local/'

I changed this to the correct path, and tests are passing. More than happy to make a PR, but it's a pretty trivial fix :)

That would be wonderful!