update memory output to display in megabytes
This commit is contained in:
parent
b5fc9ca745
commit
5c8217b682
1 changed files with 2 additions and 2 deletions
4
main.cu
4
main.cu
|
|
@ -6,8 +6,8 @@ int main(){
|
|||
|
||||
size_t mf, ma;
|
||||
cudaMemGetInfo(&mf, &ma);
|
||||
std::cout << "Free memory (gb): " << mf/1024/1024/1024 << std::endl;
|
||||
std::cout << "Total memory (gb): " << ma/1024/1024/1024 << std::endl;
|
||||
std::cout << "Free memory (mb): " << mf/1024/1024 << std::endl;
|
||||
std::cout << "Total memory (mb): " << ma/1024/1024 << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue