Skip to content

Commit 6140464

Browse files
author
swfly
committed
add return
1 parent 0563851 commit 6140464

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backends/cuda/cuda_device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ string CUDADevice::query(luisa::string_view property) noexcept {
12021202
cuMemGetInfo(&free_mem, &total_mem);
12031203
memory = std::to_string(free_mem);
12041204
});
1205+
return memory;
12051206
}
12061207
LUISA_WARNING_WITH_LOCATION("Unknown device property '{}'.", property);
12071208
return {};

0 commit comments

Comments
 (0)