We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9595621 commit 83d7f50Copy full SHA for 83d7f50
1 file changed
devito/data/allocators.py
@@ -1,9 +1,9 @@
1
import abc
2
import ctypes
3
+import ctypes.util
4
import mmap
5
import os
6
import sys
-from ctypes.util import find_library
7
8
import numpy as np
9
@@ -153,7 +153,7 @@ class PosixAllocator(MemoryAllocator):
153
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 +274,7 @@ class NumaAllocator(MemoryAllocator):
274
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