1.

How Can Two Gpu Threads Communicate Through Shared Memory?

Answer»

If the threads belong to a non-divergent warp, writes before reads are visible to the read. Two threads in the same block must have an intervening SYNC for the write to affect the read. Two thread in DIFFERENT blocks WITHIN the same kernel cannot be guaranteed an order and the read must be moved to a LATER kernel for the write to BECOME visible.

If the threads belong to a non-divergent warp, writes before reads are visible to the read. Two threads in the same block must have an intervening sync for the write to affect the read. Two thread in different blocks within the same kernel cannot be guaranteed an order and the read must be moved to a later kernel for the write to become visible.



Discussion

No Comment Found