Skip to content
Snippets Groups Projects
Commit 588e17d4 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Flake8 fixes

parent 495b8986
No related branches found
No related tags found
No related merge requests found
......@@ -1175,8 +1175,8 @@ class LoopKernel(RecordWithoutPickling):
import loopy as lp
Fore = self.options._fore
Style = self.options._style
Fore = self.options._fore # noqa
Style = self.options._style # noqa
from loopy.kernel.tools import draw_dependencies_as_unicode_arrows
for insn, (arrows, extender) in zip(
......
......@@ -289,7 +289,7 @@ class InameArg(ValueArg):
# {{{ temporary variable
class temp_var_scope:
class temp_var_scope: # noqa
"""Storage location of a temporary
.. attribute:: PRIVATE
......
......@@ -502,7 +502,7 @@ def _get_assignee_subscript_deps(expr):
# {{{ atomic ops
class memory_ordering:
class memory_ordering: # noqa
"""Ordering of atomic operations, defined as in C11 and OpenCL.
.. attribute:: relaxed
......@@ -530,7 +530,7 @@ class memory_ordering:
raise ValueError("Unknown value of memory_ordering")
class memory_scope:
class memory_scope: # noqa
"""Scope of atomicity, defined as in OpenCL.
.. attribute:: auto
......
......@@ -416,15 +416,15 @@ def sched_item_to_insn_id(sched_item):
# {{{ debug help
def format_insn_id(kernel, insn_id):
Fore = kernel.options._fore
Style = kernel.options._style
Fore = kernel.options._fore # noqa
Style = kernel.options._style # noqa
return Fore.GREEN + insn_id + Style.RESET_ALL
def format_insn(kernel, insn_id):
insn = kernel.id_to_insn[insn_id]
Fore = kernel.options._fore
Style = kernel.options._style
Fore = kernel.options._fore # noqa
Style = kernel.options._style # noqa
from loopy.kernel.instruction import (
MultiAssignmentBase, NoOpInstruction, BarrierInstruction)
if isinstance(insn, MultiAssignmentBase):
......@@ -645,8 +645,8 @@ def generate_loop_schedules_internal(
# to give loops containing high-priority instructions a chance.
kernel = sched_state.kernel
Fore = kernel.options._fore
Style = kernel.options._style
Fore = kernel.options._fore # noqa
Style = kernel.options._style # noqa
if allow_boost is None:
rec_allow_boost = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment