Fixed GPU compile flag

This commit is contained in:
Matt Hill
2015-03-12 22:58:02 -04:00
parent 27a2ae7145
commit 7f693373d5
4 changed files with 8 additions and 8 deletions

View File

@@ -11,12 +11,13 @@ namespace alpr
}
else if (config->gpu_mode == 1)
{
#if COMPILE_GPU
#ifdef COMPILE_GPU
return new DetectorCUDA(config);
#else
std::cerr << "Error: GPU detector requested, but GPU extensions are not compiled. " <<
"Add COMPILE_GPU=1 to the compiler definitions to enable GPU compilation." <<
std::endl;
return new DetectorCPU(config);
#endif
}
}