Store it into a [font=“Courier New”]device[/font] variable and copy that to the host.
Keep in mind that this really makes sense only with a single block, otherwise you need to think about a suitable reduction of the results from multiple blocks, either using atomics or a separate kernel that again only executes a single block.
Store it into a [font=“Courier New”]device[/font] variable and copy that to the host.
Keep in mind that this really makes sense only with a single block, otherwise you need to think about a suitable reduction of the results from multiple blocks, either using atomics or a separate kernel that again only executes a single block.