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

Missing <stdexcept> header with latest commits #65

Open
ryanbowen opened this issue Nov 18, 2022 · 1 comment
Open

Missing <stdexcept> header with latest commits #65

ryanbowen opened this issue Nov 18, 2022 · 1 comment

Comments

@ryanbowen
Copy link

One of the last few commits includes a change to throw a std::runtime_error but doesn't actually include <stdexcept> so make fails depending on the environment. Some of the commonly used std library headers used to include <stdexcept> so things like std::runtime_error may have been implicitly defined.

__@__:~/cave/gpu-burn$ make
g++  -O3 -Wno-unused-result -I/usr/local/cuda/include -c gpu_burn-drv.cpp
gpu_burn-drv.cpp: In function ‘int main(int, char**)’:
gpu_burn-drv.cpp:817:23: error: ‘runtime_error’ is not a member of ‘std’
                 throw std::runtime_error("No CUDA capable GPUs found.\n");
                       ^
make: *** [gpu_burn-drv.o] Error 1
@alexmyczko
Copy link
Contributor

can you show what GPUs you have using: lspci |grep VGA ?

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

No branches or pull requests

2 participants