Skip to content

Commit a1d5a1f

Browse files
miketrumpisumar456
authored andcommitted
BF: check AF library paths for pkg vs source install
1 parent 76d8a5b commit a1d5a1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arrayfire/library.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,10 @@ def _setup():
517517
post = '.' + _VER_MAJOR_PLACEHOLDER + '.dylib'
518518

519519
if AF_SEARCH_PATH is None:
520-
AF_SEARCH_PATH='/usr/local/'
520+
if os.path.exists('/opt/arrayfire'):
521+
AF_SEARCH_PATH = '/opt/arrayfire/'
522+
else:
523+
AF_SEARCH_PATH = '/usr/local/'
521524

522525
if CUDA_PATH is None:
523526
CUDA_PATH='/usr/local/cuda/'

0 commit comments

Comments
 (0)