Skip to content

Commit be8bfee

Browse files
committed
Added device information to debug log
1 parent ff1b6c2 commit be8bfee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/qgsopenclutils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void QgsOpenClUtils::init()
3939
for ( auto &p : platforms )
4040
{
4141
std::string platver = p.getInfo<CL_PLATFORM_VERSION>();
42-
QgsDebugMsg( QStringLiteral( "Found platform %1: %2" ).arg( QString::fromStdString( platver ), QString::fromStdString( p.getInfo<CL_PLATFORM_NAME>() ) ) );
42+
QgsDebugMsg( QStringLiteral( "Found OpenCL platform %1: %2" ).arg( QString::fromStdString( platver ), QString::fromStdString( p.getInfo<CL_PLATFORM_NAME>() ) ) );
4343
if ( platver.find( "OpenCL 1." ) != std::string::npos )
4444
{
4545
std::vector<cl::Device> devices;
@@ -70,6 +70,7 @@ void QgsOpenClUtils::init()
7070
else
7171
{
7272
cl::Device::setDefault( dev );
73+
QgsDebugMsg( QStringLiteral( "Found OpenCL device %1" ).arg( QString::fromStdString( dev.getInfo<CL_DEVICE_NAME>() ) ) );
7374
sAvailable = true;
7475
}
7576
}

0 commit comments

Comments
 (0)