Patent ID: 9448857
Filing Date: 2016-09-20
CPC Classification: G06F

Claim Text:
1. A memory access method for parallel computing for n parallel threads that invoke one original execution module, the method comprising: determining a number k of k mirror execution modules needed to be created based on the number n of the n parallel threads, wherein n≧2 and wherein 1≧k≧n−1; determining a mapping policy F between the n parallel threads and k+1 execution modules, wherein the k+1 execution modules include the original execution module and the k mirror execution modules and wherein the original execution module is an executable program or a dynamic link library composed of instructions that are stored on a non-transitory computer-readable medium and executable by a processor; creating the k mirror execution modules by copying the original execution module, wherein the original execution module has a plurality of functions, and wherein a plurality of functions of each of the k mirror execution modules is the same as the plurality of functions of the original execution module; allocating a private memory pool from the non-transitory computer-readable medium to each of the k mirror execution modules respectively; executing the n parallel threads, and making each thread invoke one of the k+1 execution modules according to the mapping policy F, wherein each execution module of the k+1 execution modules only accesses its respective private memory pool; and after the execution of the n parallel threads are finished, deleting the k mirror execution modules and releasing resources.