[nvccWarnings] Fix warnings seen with dtests on nvcc path

This commit is contained in:
Phaneendr-kumar Lanka
2017-12-13 12:32:16 +05:30
committed by Phaneendr-kumar Lanka
parent 2cdfef0f19
commit eea7d495c7
11 changed files with 12 additions and 21 deletions
+4 -8
View File
@@ -90,14 +90,6 @@ vectorADD(const hipLaunchParm lp,
size_t N)
{
// KERNELBEGIN;
int ws = warpSize;
int zuzu = deviceVar + 1;
int b = threadIdx.x;
int c;
#ifdef NOT_YET
int a = __shfl_up(x, 1);
#endif
@@ -109,6 +101,10 @@ vectorADD(const hipLaunchParm lp,
#endif
#ifdef __HCC__
int b = threadIdx.x;
int c;
// TODO - move to HIP atomics when ready.
concurrency :: atomic_fetch_add(&c, b);
//Concurrency::atomic_add_unsigned (&x, a);