Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 109f205

Browse files
authored
Revert whitespaces to release0.51 (#84)
* Revert whitespaces to release0.51 Some changes between release0.51 and pydppl branch contains unnecessary modifications of whitespaces. This commit revers whitespace changes to release0.51. * Removed unused imported packages numba/core/codegen.py imported sys. numba/core/decorators.py imported numba.core.cpu_dispatcher. * Revert change in comment for releated to CUDA This comment contains OCL peviously. Then we changed it to DPPy, then to DPPL and finally release0.51 branch does not contain OCL at all.
1 parent fc190bf commit 109f205

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

numba/core/codegen.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from numba.misc.inspection import disassemble_elf_to_cfg
1717

1818

19-
import sys
20-
2119
_x86arch = frozenset(['x86', 'i386', 'i486', 'i586', 'i686', 'i786',
2220
'i886', 'i986'])
2321

numba/core/cpu_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class ParallelOptions(object):
4444
"""
4545
Options for controlling auto parallelization.
4646
"""
47+
4748
def __init__(self, value):
4849
self.gen_spirv = False
4950
if isinstance(value, bool):

numba/core/decorators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
from numba.core.errors import DeprecationError, NumbaDeprecationWarning
1212
from numba.stencils.stencil import stencil
13-
from numba.core import config, extending, sigutils, registry, cpu_dispatcher
13+
from numba.core import config, extending, sigutils, registry
14+
1415

1516
_logger = logging.getLogger(__name__)
1617

numba/core/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from functools import wraps
1616
from abc import abstractmethod
1717

18-
1918
# Filled at the end
2019
__all__ = []
2120

numba/core/types/functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def format(self):
9696
argstr = argsnkwargs_to_str(self._args, self._kwargs)
9797
ncandidates = sum([len(x) for x in self._failures.values()])
9898

99-
10099
# sort out a display name for the function
101100
tykey = self._function_type.typing_key
102101
# most things have __name__

numba/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
def load_tests(loader, tests, pattern):
2626
suite = TestSuite()
2727
suite.addTests(load_testsuite(loader, dirname(__file__)))
28-
29-
# Numba CUDA / DPPL / HSA tests are located in a separate directory:
28+
# Numba CUDA tests are located in a separate directory:
3029
cuda_dir = join(dirname(dirname(__file__)), 'cuda/tests')
3130
suite.addTests(loader.discover(cuda_dir))
3231

@@ -41,3 +40,4 @@ def load_tests(loader, tests, pattern):
4140
suite.addTests(loader.discover(roc_dir))
4241

4342
return suite
43+

numba/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import sys
22
from numba.core.utils import _RedirectSubpackage
33
sys.modules[__name__] = _RedirectSubpackage(locals(), "numba.core.types")
4+

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def run(self):
3636
cmdclass = versioneer.get_cmdclass()
3737
cmdclass['build_doc'] = build_doc
3838

39+
3940
GCCFLAGS = ["-std=c89", "-Wdeclaration-after-statement", "-Werror"]
4041

4142
if os.environ.get("NUMBA_GCC_FLAGS"):

0 commit comments

Comments
 (0)