Manuscript Offprint

arXiv:2610.08645

Parametrized Exact Hardware-Software Partitioning

Cameron Ibrahim, S M Ferdous, Erdal Mutlu, Ilya Safro, Mahantesh Halappanavar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Cameron Ibrahim*, S M Ferdous‡, Erdal Mutlu†, Ilya Safro* and Mahantesh Halappanavar†

*Department of Computer Science

University of Delaware, Newark, DE, United States

Email: {cibrahim, isafro}@udel.edu

†Pacific Northwest National Lab, Richland, WA, United States

Email: {erdal.mutlu, Mahantesh.Halappanavar}@pnnl.gov

‡UNC Charlotte, Charlotte, NC, United States

Email: sferdou1@charlotte.edu

Abstract—When optimizing computing architecture for specific computationally intensive tasks, such as evaluating or training a neural network, it is important to identify what computational subtasks will offer the greatest decrease in cost (e.g., wall clock time or energy usage). This problem is known as Hardware-Software (HS) Partitioning, and it has a variety of formulations, many of which are NP-Hard. In this paper, we will define a family of HS Partitioning formulations which admit an exact fixed parameter tractable algorithm based on the directed pathwidth of the given task graph and show that this family of problems contains multiple existing formulations such as makespan minimization. Finally, we examine task graphs with small directed pathwidth that arise in real world applications and show that our algorithm can provide a speed up of up to 200x over a comparable linear programming approach utilizing the Gurobi ILP Library.

Reproducibility: Our source code and data are available at https://github.com/cameton/HPEC26_HSPart.

Index Terms—Graph Decomposition, Hardware-software code-sign, Fixed parameter tractability

I. INTRODUCTION

The ability to build and utilize custom hardware accelerators for challenging computational tasks is becoming increasingly prevalent in the modern computing landscape. Examples include combinatorial optimization [1], machine learning [2], [3], simulation [4], and information partitioning [5] to mention just a few. Whether designing a custom chiplet or deciding when to utilize a Tensor Processing Unit, Hardware-Software (HS) Partitioning is a crucial stage in process wherein we attempt to identify which parts of the computational task benefit from hardware acceleration [6].

A computational task graph is a directed graph that represents a complex computation as a set of tasks (vertices) and their data or control dependencies (edges), making explicit the order and parallelism inherent in the workflow. Broadly, a given formulation of HS Partitioning will attempt to find a subset of vertices in the tasks graph which minimizes some metric for cost given a budget [7]. There are two types of vertices that correspond to software and hardware computation, respectively. Generally, the “Software” vertices will represent subtasks which will be executed as instructions on a microprocessor or collection of microprocessors, while the “Hardware” vertices represent tasks which will be executed on some sort of custom chiplet (e.g., FPGA or GPU [6]). Common metrics for cost include wall clock time, energy usage, chip size, and monetary costs. Similarly, bounds can be placed on any of these metrics.

There are a number of relevant NP-Hard formulations of the HS Partitioning problem depending on what costs need to be minimized and what resource constraints are present in your setting. This means it can be intractable to get an exact solution for some generic problem instances while using these formulations. In this paper, we will focus primarily on the minimization of the span of the computational task graph, that is the amount of time the task graph would take to execute with an unbounded number of parallel processes [7]–[9].

Our contribution: In this paper, we identify a class of HS Partitioning problems which are actually fixed parameter tractable to solve; that is, the cost required to compute a solution is determined primarily by the directed pathwidth of the computational task graph, a graph parameter which can be used to measure the complexity of a given input. To do so, we provide the following contributions.

  • In section III-A, we define a recurrence for the HS Partitioning problem based on a directed path decomposition of the task graph, enabling a dynamic programming algorithm that provides a speed up of up to 200x relative to an equivalent LP formulation.

  • In section III-B, we introduce a solver for finding directed path decompositions based on nested bisection utilizing a novel formulation for balanced vertex separators in directed acyclic graphs.

  • In section IV, we examine of real world task graphs generated from popular neural network architectures using the SODA toolchain to demonstrate that task graphs with low directed pathwidths do arise naturally [10], [11]. Neural networks such as RESNET have a pathlike structure, which is reflected in the computational task graph.

Our results directly support the broader goals of automated design exploration by providing a structure-aware method that improves the computational performance using HS partitioning. By revealing tractable regimes in realistic computational task graphs and demonstrating practical speedups, our approach enables more scalable optimization pipelines for emerging heterogeneous architectures.

References (58)