The Memory Model of Accelerator

The host and target devices may share memory or use a distributed memory. The model of memory can show different results on original variables because in the shared memory model writing to corresponding variables in the target device change the value of the original variables on the host device. But in the distributed data storage Writing by the target device only change the variables on the data storage assisting with itself. The figures bellow show the overview of shared and distributed memory models for host and target devices.