Fix warpSize, for related issue in hipeigen and torch

Change-Id: Ic66b24923a363304dca189011869ba7a0a6f8895
This commit is contained in:
Sun, Peng
2017-04-01 15:42:53 -05:00
rodzic 27bbeedabb
commit c82c84949c
2 zmienionych plików z 1 dodań i 6 usunięć
+1 -2
Wyświetl plik
@@ -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
Wyświetl plik
@@ -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(); };