NVCC does not support template in extern __shared__. Compilation is fixed but test still does not run on NVCC. Change-Id: I427c9170812401460d60ef8e3246525eeda38514