def _get_unique_smem_id(name):
 global _unique_smem_id
 _unique_smem_id += 1
 return '{0}_{1}'.format(name, _unique_smem_id)

def _get_unique_smem_id ( name ) : global _unique_smem_id _unique_smem_id += 1 return '{0}_{1}' . format ( name , _unique_smem_id )
due to bug with nvvm invalid internalizing of shared memory in the ptx output .