The invention provides a method and related equipment for optimizing GPU (
Graphics Processing Unit) operation based on a
CUDA (Compute Unified Device Architecture) shared storage mechanism, and the method comprises the following steps: connecting
expansion card equipment with a GPU through a PCIe (
Peripheral Component Interconnect Express) interface on the GPU, and carrying out equipment identification and
address space mapping
processing on the GPU and the
expansion card equipment to obtain storage space configuration information required by the GPU operation; performing space division and
data channel establishment
processing on the
expansion card equipment according to the storage space configuration information to obtain a
data transmission channel configuration result of GPU operation; and carrying out
storage area scheduling and thread synchronization on the to-be-operated data of the GPU between the GPU and the expansion card equipment through a
CUDA shared storage mechanism according to a
data transmission channel configuration result until the operation process of the GPU is completed. According to the method, storage scheduling and thread synchronization of the data between the GPU and the expansion equipment are realized through recognition, space division and efficient establishment of the
data channel on the GPU expansion equipment by a
CUDA shared storage mechanism, so that the calculation efficiency is improved, and large-scale
data processing requirements are better supported.