Skip to content

Commit 3e7997c

Browse files
authored
inlined (#26)
1 parent e5723d2 commit 3e7997c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/mkn/gpu/cuda.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void inline prinfo(size_t dev = 0) {
340340
KOUT(NON) << " threadsPBlock " << devProp.maxThreadsPerBlock;
341341
}
342342

343-
void print_gpu_mem_used() {
343+
void inline print_gpu_mem_used() {
344344
float free_m = 0, total_m = 0, used_m = 0;
345345
std::size_t free_t = 0, total_t = 0;
346346
cudaMemGetInfo(&free_t, &total_t);

inc/mkn/gpu/rocm.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void inline prinfo(size_t dev = 0) {
340340
KOUT(NON) << " threadsPBlock " << devProp.maxThreadsPerBlock;
341341
}
342342

343-
void print_gpu_mem_used() {
343+
void inline print_gpu_mem_used() {
344344
float free_m = 0, total_m = 0, used_m = 0;
345345
std::size_t free_t = 0, total_t = 0;
346346
MKN_GPU_ASSERT(hipMemGetInfo(&free_t, &total_t));

0 commit comments

Comments
 (0)