Skip to content

Commit

Permalink
doc: add warning to reduction detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Jul 2, 2024
1 parent 33c3805 commit 0a23c0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discopop_explorer/pattern_detectors/reduction_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from multiprocessing import Pool
from typing import List, cast, Set, Tuple
import warnings

from alive_progress import alive_bar # type: ignore

Expand Down Expand Up @@ -80,6 +81,8 @@ def run_detection(pet: PEGraphX, hotspots) -> List[ReductionInfo]:

nodes = cast(List[LoopNode], filter_for_hotspots(pet, cast(List[Node], nodes), hotspots))

warnings.warn("REDUCTION DETECTION CURRENTLY ASSUMES THE EXISTENCE OF DEPENDENCY METADATA!")

param_list = [(node) for node in nodes]
with Pool(initializer=__initialize_worker, initargs=(pet,)) as pool:
tmp_result = list(tqdm.tqdm(pool.imap_unordered(__check_node, param_list), total=len(param_list)))
Expand Down

0 comments on commit 0a23c0a

Please sign in to comment.