hide

Read Next

LIVEN UP YOUR HOME WITH MOSAIC TILES

On FS Alexander Tiles

The word "mosaic" really refers the process of using lots of little tiles simultaneously to conceive larger designs and surfaces. While mosaic is absolutely a time consuming and meticulous process, the nearly unlimited components to choose from and the boundless design possibilities of the art make it one of the most versatile, popular, and spectacular tiling choices accessible to any homeowner. From backsplashes to pool surface tiles, wall paintings to tabletops and mirrors, mosaic tile is strong stuff to crush.

Memory Fences instead of Synchronization Barriers ?

On GPGPnotes

Most of modern architectures have a Weakly-Ordered Memory Model, meaning that the memory is not automatically accessed in the order in which we specify it in the program. Therefore, to guarantee the program correctness, we must explicitly force a certain ordering. This can be achieved with the use of Memory Fences and Synchronization Barriers.

In GPGPU, Barriers are very familiar and are widely used in the community. Memory Fences however tend to be ignored.

Let's take the case of a kernel in which we are launching thread blocks where the block data is mapped at runtime: For instance, the algorithm will select randomly X threads that will perform global and/or local memory loads and stores to do some processing with it later. The remaining REST of the threads will however perform no-writing work and won't affect kernel instructions that follows the barrier / fence (cf. drawing).

Without thread ordering, the kernel would obviously turn into a mess because of race conditions. Synchronizing with a barrier is the standard way to guarantee correctness, but since only X threads are performing writes, it would be useless to wait for the REST of the threads to synchronize. By fencing the threads, only writing threads are synchronized, allowing us save time !

Rendering New Theme...