What are swizzle and vote? Are they anything we might find useful programming in CUDA?
This comment was marked helpful 0 times.
Just to confirm:
Threads in a block are run concurrently and so they can be synchronized. However, thread blocks are like ISPC tasks and are run independently of each other. Is that right?
@ycp: I like your analogy.
I would prefer to say "Threads in a thread block are run concurrently because CUDA's abstractions allow these threads to communicate and synchronize in ways that require concurrent execution."
Vote is use to perform reduction operations and subsequently broadcast the result to all threads.
Swizzle is used to create other-sized vectors out of four-vectors, because all registers on the GPU are four-vectors. This is used since other instructions may not take four-vectors as arguments.