Skip to content

Commit

Permalink
Fix typo in logging (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifer1004 authored Sep 25, 2023
1 parent 7c0cda0 commit bc04f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unidock/src/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ bug reporting, license agreements, and more information. \n";
if (deviceCount > 0){
cudaSetDevice(0);
cudaMemGetInfo(&avail, &total);
printf("Avaliable Memory = %dMiB Total Memory = %dMiB\n", int(avail/1024/1024), int(total / 1024 / 1024));
printf("Available Memory = %dMiB Total Memory = %dMiB\n", int(avail/1024/1024), int(total / 1024 / 1024));
max_memory = avail / 1024 / 1024 * 0.95; // leave 5% to prevent error
}
if (max_memory < 17000){
Expand Down
2 changes: 1 addition & 1 deletion unidock/src/rocm/main.cu.hip
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ Thank you!\n";
if (deviceCount > 0){
hipSetDevice(0);
hipMemGetInfo(&avail, &total);
printf("Avaliable Memory = %dMiB Total Memory = %dMiB\n", int(avail/1024/1024), int(total / 1024 / 1024));
printf("Available Memory = %dMiB Total Memory = %dMiB\n", int(avail/1024/1024), int(total / 1024 / 1024));
max_memory = avail / 1024 / 1024 * 0.95; // leave 5% to prevent error
}
if (max_memory < 17000){
Expand Down

0 comments on commit bc04f4a

Please sign in to comment.