|
| View previous topic :: View next topic |
| Author |
Message |
JMa
Joined: 30 Nov 2012 Posts: 14
|
Posted: Thu Jan 24, 2013 8:45 pm Post subject: where "mirror" data sits? |
|
|
Hi Mat,
When an array is claimed to be "mirror" to be visible across the whole praogram, which part of memory acutally hosts this array? I guess it might be global memory? since it can be sychornized between CPU & PGU without the need of "copy", but "update".
Am I corret? If this is true, do you think whether data access speed is slow when the cmputing region is accessing the momories of that array?
Thanks,
Jingsen |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Jan 28, 2013 11:19 am Post subject: |
|
|
Hi Jingsen,
The PGI Accelerator Model's "mirror" clause simply mirrors the allocation status of a host and device array. When the host array is allocated, a device array is also allocated in the device's global memory. However, no data movement is performed and hence the use of the "update" clause is necessary when synchronizing the host and device copies.
| Quote: | | do you think whether data access speed is slow when the cmputing region is accessing the momories of that array? | This depends on how the data is being accessed. If the data is being accessed as a contiguous block across all threads in a warp, then it's fine. If the access data is scattered, then it leads to memory divergence and slower performance.
Use of the hardware's local memory can help, but is not as necessary given that the last two generations of NVIDIA hardware has automatic caching support.
- Mat |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|