We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83892a5 commit 6d51838Copy full SHA for 6d51838
csrc/ops.cu
@@ -17,7 +17,8 @@ static int bnb_host_warp_size() {
17
static int cache[MAX_DEVICES] = {};
18
int dev;
19
(void)hipGetDevice(&dev);
20
- if (dev < 0 || dev >= MAX_DEVICES) return 64;
+ if (dev < 0 || dev >= MAX_DEVICES)
21
+ return 64;
22
if (cache[dev] == 0)
23
(void)hipDeviceGetAttribute(&cache[dev], hipDeviceAttributeWarpSize, dev);
24
return cache[dev];
0 commit comments