mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 12:37:06 +08:00
Fixed GPU compile flag
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user