Analysis of a Heuristic for Code Partitioning

  • Authors:
  • Moez Ayed;Jean-Luc Gaudiot

  • Affiliations:
  • MICOM Communications Corp., A Nortel (Northern Telecom) Company, 4100 Los Angeles Avenue, Simi Valley, CA 93063-3397 mayed@usc.edu;Department of EE-Systems, University of Southern California, Los Angeles, CA 90089-2563 gaudiot@usc.edu

  • Venue:
  • The Journal of Supercomputing
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we analyze the time complexity and performance of aheuristic for code partitioning for Distributed Memory Multiprocessors(DMMs). The partitioning method is data-flow based where all levels ofparallelism are exploited. Given a weighted Directed Acyclic Graph(DAG) representation of the program, our algorithm automaticallydetermines the granularity of parallelism by partitioning the graphinto tasks to be scheduled on the DMM. The granularity of parallelismdepends only on the program to be executed and on the target machineparameters. The output of our algorithm is passed on as input to thescheduling phase. Finding an optimal solution to this problem isNP-complete. Due to the high cost of graph algorithms, it is nearlyimpossible to come up with close to optimal solutions that do not havevery high cost (higher order polynomial). Our proposed heuristic givesgood performance and has relatively low cost.