Use bulk::malloc instead of statically-allocated __shared__ memory.