Use __device__-side malloc instead of __shared__ memory to store tags when it is available.