Abstract:
Embodiments of the present invention disclose a method and an apparatus for detecting inter-instruction data dependency. The method comprises: comparing a thread number corresponding to a historical access operation with a thread number corresponding to a write access operation, if the thread number corresponding to the write access operation is less than the thread number corresponding to the historical access operation, which indicates existence of data dependency for a to-be-detected instruction, terminating the detection; or comparing a thread number corresponding to a historical write access operation with a thread number corresponding to a read access operation, if the thread number corresponding to the read access operation is less than the thread number corresponding to the historical write access operation, which indicates existence of data dependency for the to-be-detected instruction, terminating the detection.
Abstract:
A method and a related device for determining a management mode of a shared virtual memory page are disclosed. In one example, a method is disclosed that includes monitoring frequency or mode of access operation of at least one process accessing the shared virtual memory page; and changing the management mode of the shared virtual memory page to a shared physical memory mode if the monitored frequency or mode of access operation meets a first set condition and a current management mode of the shared virtual memory page is a distributed shared memory mode. The technical solutions provided in the present disclosure can enhance performance of accessing a shared virtual memory.