Skip to content
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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

XL64
Copy link
Contributor

@XL64 XL64 commented Jul 25, 2023

No description provided.

@@ -9,8 +9,8 @@
* @file system.hpp
* @brief Contains functions that interact with the system or runtime environment.
*/

#pragma once
Copy link
Contributor

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();
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants