-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add getAvailableMemoryOnHost() and getAvailableMemoryOnDevice() #299
base: develop
Are you sure you want to change the base?
Conversation
@@ -9,8 +9,8 @@ | |||
* @file system.hpp | |||
* @brief Contains functions that interact with the system or runtime environment. | |||
*/ | |||
|
|||
#pragma once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of LvArray is using #pragma once
, did you not have any issues with it before?
* @brief Retieves current available memory on host | ||
* @return the available memory in bytes. | ||
*/ | ||
size_t getAvailableMemoryOnHost(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd prefer getAvailableMemory(MemorySpace const space)
instead of two separate functions.
No description provided.