Take into account the kernel's PTX version when deciding how many blocks to launch at a time.
merge's stage needs to be __shared__.