Informative error if memory to burn is less than threshold#119
Open
ashuthak210 wants to merge 4 commits intowilicc:masterfrom
Open
Informative error if memory to burn is less than threshold#119ashuthak210 wants to merge 4 commits intowilicc:masterfrom
ashuthak210 wants to merge 4 commits intowilicc:masterfrom
Conversation
If the %age memory to burn is below a threshold then program aborts without any user friendly message. [Solution] Added a user friendly message that can save debugging for the user [Testing] Testing with following run ``` ashuthak@ashuthak-ubuntu:~/gpu_burn/gpu-burn$ ./gpu_burn -m 1% 60 Using compare file: compare.ptx Burning for 60 seconds. GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU (UUID: GPU-062ffaaa-3ab3-31f9-1938-451fee6a15fb) Initialized device 0 with 7721 MB of memory (7594 MB available, using 75 MB of it), using FLOATS Results are 268435456 bytes each, thus performing 68719476734 iterations Provide bytes (75 MB) are not sufficient. aborting. terminate called after throwing an instance of 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >' 1.7% proc'd: -1 (0 Gflop/s) errors: 0 (DIED!) temps: 49 C ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Problem]
If the %age memory to burn is below a threshold then program aborts without any user friendly message.
[Solution]
Added a user friendly message that can save debugging for the user
[Testing]
Testing with following run