diff --git a/libqwqng-wrapper-x86-64.so b/libqwqng-wrapper-x86-64.so new file mode 100644 index 0000000..d1c01cf Binary files /dev/null and b/libqwqng-wrapper-x86-64.so differ diff --git a/libqwqng-wrapper.so b/libqwqng-wrapper.so index d1c01cf..9fe8fd8 100644 Binary files a/libqwqng-wrapper.so and b/libqwqng-wrapper.so differ diff --git a/quanttp/data/qng_wrapper_linux.py b/quanttp/data/qng_wrapper_linux.py index 4333974..84be756 100644 --- a/quanttp/data/qng_wrapper_linux.py +++ b/quanttp/data/qng_wrapper_linux.py @@ -18,13 +18,14 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import platform from ctypes import cdll, c_void_p, c_int, c_double, POINTER, c_char class QngWrapperLinux: def __init__(self): - self.libqwqng_wrapper = cdll.LoadLibrary('./libqwqng-wrapper.so') + self.libqwqng_wrapper = cdll.LoadLibrary('./libqwqng-wrapper-x86-64.so' if platform.machine().endswith('64') else './libqwqng-wrapper.so') self.libqwqng_wrapper.GetQwqngInstance.restype = c_void_p self.libqwqng_wrapper.RandInt32.argtypes = [c_void_p] self.libqwqng_wrapper.RandInt32.restype = c_int