We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9595621 commit c0fcab4Copy full SHA for c0fcab4
1 file changed
devito/data/allocators.py
@@ -3,7 +3,6 @@
3
import mmap
4
import os
5
import sys
6
-from ctypes.util import find_library
7
8
import numpy as np
9
@@ -153,7 +152,7 @@ class PosixAllocator(MemoryAllocator):
153
152
154
@classmethod
155
def initialize(cls):
156
- handle = find_library('c')
+ handle = ctypes.util.find_library('c')
157
158
# Special case: on MacOS Big Sur any code that attempts to check
159
# for dynamic library presence by looking for a file at a path
@@ -274,7 +273,7 @@ class NumaAllocator(MemoryAllocator):
274
273
275
276
277
- handle = find_library('numa')
+ handle = ctypes.util.find_library('numa')
278
if handle is None:
279
return
280
lib = ctypes.CDLL(handle)
0 commit comments