So the maximum number of threads in the block is 1024 (per SpatialSoftMax_getBlockSize), the accscalar will be 32 or 64 bits, so we’re using 4k-8k shmem per block.  SpatialSoftMax_getLaunchSizes now uses the occupancy API to determine the maximum number of active blocks.
Which part is not considered?
Best regards
Thomas