Fix tests to read warpSize from device props.
Change-Id: I9583577793afad49f9eb1ee9069bd4c6963a6023
[ROCm/hip commit: 7106dc6796]
This commit is contained in:
1 förälder
b478d8a0b8
incheckning
58bd8617e8
2 files changed
+14
-8
No files matched your search
@@ -48,9 +48,11 @@ int main(int argc, char *argv[])
|
||||
hipDeviceProp_t devProp;
|
||||
hipGetDeviceProperties(&devProp, 0);
|
||||
|
||||
if(strncmp(devProp.name,"Fiji",1)==0)
|
||||
{warpSize = 64; pshift =6;}
|
||||
else {warpSize =32; pshift =5;}
|
||||
warpSize = devProp.warpSize;
|
||||
|
||||
int w = warpSize;
|
||||
pshift = 0;
|
||||
while (w >>= 1) ++pshift;
|
||||
|
||||
unsigned int Num_Threads_per_Block = 512;
|
||||
unsigned int Num_Blocks_per_Grid = 1;
|
||||
|
||||
Reference in new issue
Block a user