wilicc / gpu-burn

Multi-GPU CUDA stress test
BSD 2-Clause "Simplified" License
1.37k stars 295 forks source link

make error #79

Closed huang-yi314 closed 12 months ago

huang-yi314 commented 1 year ago

Hi Everyone how to I fix this bug. Thanks

System: OS:CentOS 7 VGA CARD:4090, fw:530.30.02 CUDA:12.1 C++:4.8.2

Error message [root@localhost new gpu-burn-master]# make g++ -O3 -Wno-unused-result -I/usr/local/cuda/include -c gpu_burn-drv.cpp In file included from /usr/include/c++/4.8.2/chrono:35:0, from gpu_burn-drv.cpp:41: /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

error This file requires compiler and library support for the \

^ gpu_burn-drv.cpp:501:38: error: ‘std::chrono’ has not been declared int runTime, std::chrono::seconds sigterm_timeout_threshold_secs) { ^ gpu_burn-drv.cpp:501:54: error: expected ‘,’ or ‘...’ before ‘sigterm_timeout_threshold_secs’ int runTime, std::chrono::seconds sigterm_timeout_threshold_secs) { ^ gpu_burn-drv.cpp: In function ‘void listenClients(std::vector, std::vector, int, int)’: gpu_burn-drv.cpp:664:10: error: ‘std::this_thread’ has not been declared std::this_thread::sleep_for(sigterm_timeout_threshold_secs); ^ gpu_burn-drv.cpp:664:33: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope std::this_thread::sleep_for(sigterm_timeout_threshold_secs); ^ gpu_burn-drv.cpp: At global scope: gpu_burn-drv.cpp:714:18: error: ‘std::chrono’ has not been declared std::chrono::seconds sigterm_timeout_threshold_secs) { ^ gpu_burn-drv.cpp:714:34: error: expected ‘,’ or ‘...’ before ‘sigterm_timeout_threshold_secs’ std::chrono::seconds sigterm_timeout_threshold_secs) { ^ gpu_burn-drv.cpp: In function ‘void launch(int, bool, bool, ssize_t, int, const char, int)’: gpu_burn-drv.cpp:753:63: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope listenClients(clientPipes, clientPids, runLength, sigterm_timeout_threshold_secs); ^ gpu_burn-drv.cpp:804:67: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope listenClients(clientPipes, clientPids, runLength, sigterm_timeout_threshold_secs); ^ gpu_burn-drv.cpp: In function ‘int main(int, char)’: gpu_burn-drv.cpp:859:10: error: ‘std::chrono’ has not been declared std::chrono::seconds sigterm_timeout_threshold_secs = std::chrono::seconds(SIGTERM_TIMEOUT_THRESHOLD_SECS); ^ gpu_burn-drv.cpp:859:26: error: expected ‘;’ before ‘sigterm_timeout_threshold_secs’ std::chrono::seconds sigterm_timeout_threshold_secs = std::chrono::seconds(SIGTERM_TIMEOUT_THRESHOLD_SECS); ^ gpu_burn-drv.cpp:940:17: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope sigterm_timeout_threshold_secs = std::chrono::seconds(atoi(argv[i + 1])); ^ gpu_burn-drv.cpp:940:55: error: ‘std::chrono’ has not been declared sigterm_timeout_threshold_secs = std::chrono::seconds(atoi(argv[i + 1])); ^ gpu_burn-drv.cpp:955:47: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope device_id, kernelFile, sigterm_timeout_threshold_secs); ^ gpu_burn-drv.cpp:958:46: error: ‘sigterm_timeout_threshold_secs’ was not declared in this scope device_id, kernelFile, sigterm_timeout_threshold_secs); ^ make: [gpu_burn-drv.o] Error 1