Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New compiler. #4513

Merged
merged 13 commits into from
Sep 13, 2019
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ exclude =
numba/smartarray.py
numba/transforms.py
numba/tracing.py
numba/compiler.py
numba/ctypes_support.py
numba/withcontexts.py
numba/_version.py
Expand Down
6 changes: 3 additions & 3 deletions numba/ccallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .targets import registry
from .typing import signature
from .typing.ctypes_utils import to_ctypes

from .compiler_lock import global_compiler_lock

class _CFuncCompiler(_FunctionCompiler):

Expand All @@ -38,7 +38,7 @@ class CFunc(object):
_targetdescr = registry.cpu_target

def __init__(self, pyfunc, sig, locals, options,
pipeline_class=compiler.Pipeline):
pipeline_class=compiler.Compiler):
args, return_type = sig
if return_type is None:
raise TypeError("C callback needs an explicit return type")
Expand All @@ -60,7 +60,7 @@ def __init__(self, pyfunc, sig, locals, options,
def enable_caching(self):
self._cache = FunctionCache(self._pyfunc)

@compiler.global_compiler_lock
@global_compiler_lock
def compile(self):
# Try to load from cache
cres = self._cache.load_overload(self._sig, self._targetdescr.target_context)
Expand Down