Skip to content

Commit 6d51838

Browse files
authored
Fix linting issues
1 parent 83892a5 commit 6d51838

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/ops.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ static int bnb_host_warp_size() {
1717
static int cache[MAX_DEVICES] = {};
1818
int dev;
1919
(void)hipGetDevice(&dev);
20-
if (dev < 0 || dev >= MAX_DEVICES) return 64;
20+
if (dev < 0 || dev >= MAX_DEVICES)
21+
return 64;
2122
if (cache[dev] == 0)
2223
(void)hipDeviceGetAttribute(&cache[dev], hipDeviceAttributeWarpSize, dev);
2324
return cache[dev];

0 commit comments

Comments
 (0)