Skip to content

Commit 76d8a5b

Browse files
syurkeviumar456
authored andcommitted
update arrayfire library directory on 64 bit systems
1 parent ec86afa commit 76d8a5b

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
@@ -551,7 +551,10 @@ class _clibrary(object):
551551
def __libname(self, name, head='af', ver_major=AF_VER_MAJOR):
552552
post = self.__post.replace(_VER_MAJOR_PLACEHOLDER, ver_major)
553553
libname = self.__pre + head + name + post
554-
libname_full = self.AF_PATH + '/lib/' + libname
554+
if os.path.isdir(self.AF_PATH + '/lib64'):
555+
libname_full = self.AF_PATH + '/lib64/' + libname
556+
else:
557+
libname_full = self.AF_PATH + '/lib/' + libname
555558
return (libname, libname_full)
556559

557560
def set_unsafe(self, name):

0 commit comments

Comments
 (0)