Fix warpSize, for related issue in hipeigen and torch

Change-Id: Ic66b24923a363304dca189011869ba7a0a6f8895
Cette révision appartient à :
Sun, Peng
2017-04-01 15:42:53 -05:00
Parent 9762667431
révision a7d7797781
2 fichiers modifiés avec 1 ajouts et 6 suppressions
+1 -2
Voir le fichier
@@ -159,8 +159,7 @@ extern int HIP_TRACE_API;
// TODO - hipify-clang - change to use the function call.
//#define warpSize hc::__wavesize()
extern const int warpSize;
static constexpr int warpSize = 64;
#define clock_t long long int
__device__ long long int clock64();
-4
Voir le fichier
@@ -835,10 +835,6 @@ __device__ float __hip_ynf(int n, float x)
return b0;
}
const int warpSize = 64;
__device__ long long int clock64() { return (long long int)hc::__cycle_u64(); };
__device__ clock_t clock() { return (clock_t)hc::__cycle_u64(); };