cudaErrorLaunchOutOfResources: too many resources requested for launch, when 3480 registers used

You may be running out of local memory. A typical writeup is here. You haven’t provided enough information to diagnose. The number of blocks in the grid shouldn’t have any effect on the resource issues I am aware of (registers, local/stack memory).