DIGITS icon indicating copy to clipboard operation
DIGITS copied to clipboard

ctypes error loading libcudart library on Mac OS X

Open RudolphV opened this issue 11 years ago • 4 comments

Line 84 in DIGITS/digits/device_query.py

cudart = ctypes.cdll.LoadLibrary('libcudart.so')

causes a load error on Mac OS X, given that dylib's are used.

This

cudart = ctypes.cdll.LoadLibrary('libcudart.dylib')

fixes it. Should probably check for the OS it's running on, or try both.

RudolphV avatar Mar 27 '15 00:03 RudolphV

Is that all you had to change to get it running on a Mac? Cool. Do you want to fix it yourself and open a pull request? If not, I'll get around to it eventually.

lukeyeager avatar Mar 27 '15 00:03 lukeyeager

Is that all you had to change to get it running on a Mac?

Yes, just that one line.

RudolphV avatar Mar 27 '15 16:03 RudolphV

Hey @RudolphV, will you verify that the fix I just pushed to the check-platform branch works for you? I don't have a mac to test on.

lukeyeager avatar Mar 27 '15 16:03 lukeyeager

Yes, that works. Great,

RudolphV avatar Mar 27 '15 17:03 RudolphV