Skip to content

Commit

Permalink
Added device information to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent ff1b6c2 commit be8bfee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsopenclutils.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit be8bfee

Please sign in to comment.