@@ -425,13 +425,11 @@ def op_group_features(self, expr):
425425
426426 # {{{ internal functionality for execution
427427
428- def exec_compute_potential_insn (self , actx , insn , bound_expr , evaluate ,
429- return_timing_data ):
428+ def exec_compute_potential_insn (self , actx , insn , bound_expr , evaluate ):
430429 extra_args = {}
431430
432431 if self .fmm_level_to_order is False :
433432 func = self .exec_compute_potential_insn_direct
434- extra_args ["return_timing_data" ] = return_timing_data
435433
436434 else :
437435 func = self .exec_compute_potential_insn_fmm
@@ -440,11 +438,7 @@ def drive_fmm(
440438 actx , wrangler , strengths , geo_data , kernel , kernel_arguments ):
441439 del geo_data , kernel , kernel_arguments
442440 from pytential .qbx .fmm import drive_fmm
443- if return_timing_data :
444- timing_data = {}
445- else :
446- timing_data = None
447- return drive_fmm (actx , wrangler , strengths , timing_data ), timing_data
441+ return drive_fmm (actx , wrangler , strengths )
448442
449443 extra_args ["fmm_driver" ] = drive_fmm
450444
@@ -473,25 +467,13 @@ def cost_model_compute_potential_insn(self, actx, insn, bound_expr, evaluate,
473467
474468 def drive_cost_model (
475469 actx , wrangler , strengths , geo_data , kernel , kernel_arguments ):
476-
477- if per_box :
478- cost_model_result , metadata = self .cost_model .qbx_cost_per_box (
479- actx , geo_data , kernel , kernel_arguments ,
480- calibration_params
481- )
482- else :
483- cost_model_result , metadata = self .cost_model .qbx_cost_per_stage (
484- actx , geo_data , kernel , kernel_arguments ,
485- calibration_params
486- )
487-
488470 from pytools .obj_array import obj_array_vectorize
489471 from functools import partial
490472 return (
491473 obj_array_vectorize (
492474 partial (wrangler .finalize_potentials , actx ),
493- wrangler .full_output_zeros (actx )),
494- ( cost_model_result , metadata ) )
475+ wrangler .full_output_zeros (actx ))
476+ )
495477
496478 return self ._dispatch_compute_potential_insn (
497479 actx , insn , bound_expr , evaluate ,
@@ -595,11 +577,8 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext,
595577 """
596578 :arg fmm_driver: A function that accepts four arguments:
597579 *wrangler*, *strength*, *geo_data*, *kernel*, *kernel_arguments*
598- :returns: a tuple ``(assignments, extra_outputs)``, where *assignments*
599- is a list of tuples containing pairs ``(name, value)`` representing
600- assignments to be performed in the evaluation context.
601- *extra_outputs* is data that *fmm_driver* may return
602- (such as timing data), passed through unmodified.
580+ :returns: a list of assignments containing pairs ``(name, value)``
581+ representing assignments to be performed in the evaluation context.
603582 """
604583 target_name_and_side_to_number , target_discrs_and_qbx_sides = (
605584 self .get_target_discrs_and_qbx_sides (insn , bound_expr ))
@@ -663,7 +642,7 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext,
663642 # }}}
664643
665644 # Execute global QBX.
666- all_potentials_on_every_target , extra_outputs = (
645+ all_potentials_on_every_target = (
667646 fmm_driver (
668647 actx , wrangler , flat_strengths , geo_data ,
669648 base_kernel , kernel_extra_kwargs ))
@@ -686,7 +665,7 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext,
686665
687666 results .append ((o .name , result ))
688667
689- return results , extra_outputs
668+ return results
690669
691670 # }}}
692671
@@ -758,18 +737,10 @@ def get_qbx_target_numberer(self, dtype):
758737 *count = item;
759738 """ )
760739
761- def exec_compute_potential_insn_direct (self , actx , insn , bound_expr , evaluate ,
762- return_timing_data ):
740+ def exec_compute_potential_insn_direct (self , actx , insn , bound_expr , evaluate ):
763741 from pytential import bind , sym
764742 from meshmode .discretization import Discretization
765743
766- if return_timing_data :
767- from pytential .source import UnableToCollectTimingData
768- from warnings import warn
769- warn (
770- "Timing data collection not supported." ,
771- category = UnableToCollectTimingData )
772-
773744 # {{{ evaluate and flatten inputs
774745
775746 @memoize_in (bound_expr .places ,
@@ -947,8 +918,7 @@ def _flat_centers(dofdesc, qbx_forced_limit):
947918
948919 # }}}
949920
950- timing_data = {}
951- return results , timing_data
921+ return results
952922
953923 # }}}
954924
0 commit comments