Patent ID: 9152601
Filing Date: 2015-10-06
Classification: G06F,G06T,Y02D

Abstract:
1. A method comprising: a first analyzing, by an accelerated processing unit (APU), wherein the APU includes a central processing unit (CPU) and a graphics processing unit (GPU), of a map function to generate a first metric, wherein the first metric includes a ratio of a number of branch instructions to a number of non-branch instructions in the map function; and a second analyzing, by the APU, of a reduce function to generate a second metric; executing the map function by either the CPU or the GPU based on the first metric, wherein the map function is executed on the GPU when the first metric is less than or equal to a configurable threshold, and wherein the map function is executed on the CPU when the first metric is greater than the configurable threshold; and executing the reduce function by either the CPU or the GPU based on the second metric.