1. A heterogeneous system for dynamically mapping library calls to one of a plurality of processing platforms, the plurality of processing platforms comprising a central processing unit (CPU) and one or more acceleration units as co-processing units, the system comprising: an interposer configured to: intercept the library calls from an application programming interface (API); and map the library calls to one of the plurality of processing platforms according to a classification scheme based on an affinity table, the affinity table comprising: call signatures representing input parameters of sample library calls; and one or more performance parameters of the sample library calls for each of the processing platforms, the performance parameters indicating the performance of the sample library calls on the respective processing platform.