Skip to content

Commit 49e950b

Browse files
committed
Small bug fix
1 parent 4129610 commit 49e950b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

librapid/src/openclConfigure.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ __kernel void testAddition(__global const float *a, __global const float *b, __g
240240
// Otherwise, prompt the user to select a device
241241
int64_t deviceIndex = -1;
242242
while (deviceIndex < 0 || deviceIndex >= int64_t(global::openclDevices.size())) {
243-
std::string prompt =
244-
fmt::format("Select OpenCL device [0-{}]: ", global::openclDevices.size() - 1);
245-
fmt::print(prompt);
243+
fmt::print("Select OpenCL device [0-{}]: ", global::openclDevices.size() - 1);
246244
std::cout << std::flush;
247245
std::cin >> deviceIndex;
248246
}

0 commit comments

Comments
 (0)