You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default scalars are made local to the generated kernel. This makes them "private" (conceptually) and has the added benefit that these variables are more likely to be put into a registers. When you add a scalar to a private clause, you are creating an array of these scalars in global memory, where each loop iteration has its own element (gang or vector). Since the variable is now in global memory, your code slows down.
The text was updated successfully, but these errors were encountered:
By default scalars are made local to the generated kernel. This makes them "private" (conceptually) and has the added benefit that these variables are more likely to be put into a registers. When you add a scalar to a
private
clause, you are creating an array of these scalars in global memory, where each loop iteration has its own element (gang or vector). Since the variable is now in global memory, your code slows down.The text was updated successfully, but these errors were encountered: