Skip to content
Permalink
Browse files

Added device information to debug log

  • Loading branch information
elpaso committed Aug 8, 2018
1 parent ff1b6c2 commit be8bfee990b83a2febb0a8d1b41c250125d26567
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsopenclutils.cpp
@@ -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;
}
}

0 comments on commit be8bfee

Please sign in to comment.
You can’t perform that action at this time.