Patent ID: 8225325
Filing Date: 2012-07-17
Classification: G06F

Abstract:
1. A computer implemented method comprising: determining, in response to an API (Application Programming Interface) request from an application running in a host processing unit, a total number of threads to concurrently execute one or more executable codes compiled from a single source for one or more target processing units, the API request including a global thread number having a multi-dimensional value; verifying if a thread group size has been specified by a particular one of the executable codes, the particular executable code to be executed in a particular one of the one or more target processing units, the thread group size to partition the total number of threads; in response to verifying the thread group size has not been specified by a particular one of the executable codes, determining the thread group size for the particular target processing unit based on current resource usage status of the particular target processing unit; and loading the particular executable code of the one or more executable codes to be executed in a thread group of the thread group size concurrently in the particular target processing unit.