Skip to content
Snippets Groups Projects
Commit ba457586 authored by cmaffeo2's avatar cmaffeo2
Browse files

Supress char* casting warnings

parent 7fcd3c24
No related branches found
No related tags found
Loading
......@@ -20,9 +20,9 @@ std::vector<GPU> GPUManager::allGpus, GPUManager::gpus, GPUManager::notimeouts;
GPU::GPU(unsigned int id) : id(id) {
cudaSetDevice(id);
cudaGetDeviceProperties(&properties, id);
char* timeout_str = "";
char timeout_str[32] = "";
if (properties.kernelExecTimeoutEnabled) {
timeout_str = "(may timeout) ";
sprintf(timeout_str, "(may timeout) ");
may_timeout = true;
} else {
may_timeout = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment