Skip to content

Commit c80af01

Browse files
committed
Fix CUDA error message formatting to cast error code to int
1 parent 2a0342e commit c80af01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scalable_ccd/cuda/utils/assert.cuh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ inline void gpuAssert(
2121
cudaGetErrorString(code), file, line);
2222
if (throw_on_error) {
2323
assert(code == cudaSuccess);
24-
throw std::runtime_error(fmt::format("CUDA error {}", code));
24+
throw std::runtime_error(
25+
fmt::format("CUDA error {}", static_cast<int>(code)));
2526
}
2627
}
2728
}

0 commit comments

Comments
 (0)