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

Informative error if memory to burn is less than threshold #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashuthak210
Copy link

[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

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

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
```
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.

1 participant