I know that we can pass in Ns as an option argument to a global frunction. Is there some built in variable that contains this value along the lines of threadIdx, blockIdx, etc.? I can’t seem to find it if there is. Thanks.
I mean to post this in programming and development. Sorry, guys.
okay, then I can say I never heard of it being available as a built in variable. passing it to the kernel and letting tid==0 put it in a shared variable will do the same however. blockDim, blockIdx and gridDim are also in shared memory.
threadIdx.x is standard in register 0.