If the variable is declared inside the kernel function, where the variable will be stored? in the “register”, “shared memory” or “global memory”. or in some kinds of order?
Taking the following codes for example.
[codebox]global void function_kernel(…)
__shared__ int val1; __shared__ int val2; int val3; int val4;
Where the variables of “val3” and “val4” will be stored?
thanks in advance.