首页>
外国专利>
A COMPUTER-IMPLEMENTED METHOD, A COMPUTER-READABLE MEDIUM AND A HETEROGENEOUS COMPUTING SYSTEM
A COMPUTER-IMPLEMENTED METHOD, A COMPUTER-READABLE MEDIUM AND A HETEROGENEOUS COMPUTING SYSTEM
展开▼
机译:一种计算机实现的方法,一种计算机可读介质和一种异构计算系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
A computer-implemented method includes initializing a first processing unit (71) of a heterogeneous computing system with a first compute kernel (140-144) and a second processing unit (72) of the heterogeneous computing system with a second compute kernel (150-154). Both the first compute kernel (140-144) and the second compute kernel (150- 54) are configured to perform a numerical operation derived from a program segment (220) configured to receive a first data structure (A) storing multiple elements of a common data type. The program segment (220) includes a function meta information including data related to a size of an output of the numerical operation, a structure of the output, and/or an effort for generating the output. The function meta information and a data meta information of a runtime instance (A1) of the first data structure (A) are used to determine first expected costs of executing the first kernel (140-144) on the first processing unit (71) to perform the numerical operation with the runtime instance (A1) and to determine second expected costs of executing the second kernel (150-154) on the second processing unit (72) to perform the numerical operation with the runtime instance (A1). The data meta information includes at least one of a runtime size information of the runtime instance (A1), a runtime location information of the runtime instance (A1), a runtime synchronization information of the runtime instance (A1) and a runtime type information of the runtime instance (A1). The method further includes one of executing the first compute kernel (140-144) on the first processing unit (71) to perform the numerical operation on the runtime instance (A1) if the first expected costs are lower than or equal to the second expected costs, and executing the second compute kernel (150-154) on the second processing unit (72) to perform the numerical operation on the runtime instance (A1) if the first expected costs are higher than the second expected costs.
展开▼