restored nonptx atomic_*_local

This commit is contained in:
Evghenii
2014-01-28 15:56:30 +01:00
parent 585afa09e5
commit 5a6b650d8b
2 changed files with 15 additions and 0 deletions

View File

@@ -30,7 +30,13 @@ void countPass(
if (reduce_equal(key, &skey) == true)
counts[skey] += reduce_add(1);
else
{
#ifdef __NVPTX__
atomic_add_global(&counts[key], 1);
#else
atomic_add_local(&counts[key], 1);
#endif
}
}
#else
#endif