mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Added device information to debug log
This commit is contained in:
parent
ff1b6c29bc
commit
be8bfee990
@ -39,7 +39,7 @@ void QgsOpenClUtils::init()
|
||||
for ( auto &p : platforms )
|
||||
{
|
||||
std::string platver = p.getInfo<CL_PLATFORM_VERSION>();
|
||||
QgsDebugMsg( QStringLiteral( "Found platform %1: %2" ).arg( QString::fromStdString( platver ), QString::fromStdString( p.getInfo<CL_PLATFORM_NAME>() ) ) );
|
||||
QgsDebugMsg( QStringLiteral( "Found OpenCL platform %1: %2" ).arg( QString::fromStdString( platver ), QString::fromStdString( p.getInfo<CL_PLATFORM_NAME>() ) ) );
|
||||
if ( platver.find( "OpenCL 1." ) != std::string::npos )
|
||||
{
|
||||
std::vector<cl::Device> devices;
|
||||
@ -70,6 +70,7 @@ void QgsOpenClUtils::init()
|
||||
else
|
||||
{
|
||||
cl::Device::setDefault( dev );
|
||||
QgsDebugMsg( QStringLiteral( "Found OpenCL device %1" ).arg( QString::fromStdString( dev.getInfo<CL_DEVICE_NAME>() ) ) );
|
||||
sAvailable = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user