Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #41182 load system OpenCL (#41374)
(cherry picked from commit e533b26)
  • Loading branch information
PeterPetrik authored and nyalldawson committed Feb 19, 2021
1 parent be480b0 commit a923341
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/qgsopenclutils.cpp
Expand Up @@ -83,7 +83,11 @@ void QgsOpenClUtils::init()
static std::once_flag initialized;
std::call_once( initialized, [ = ]( )
{
QLibrary openCLLib{ QStringLiteral( "OpenCL" ) };
#ifdef Q_OS_MAC
QLibrary openCLLib { QStringLiteral( "/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL" ) };
#else
QLibrary openCLLib { QStringLiteral( "OpenCL" ) };
#endif
openCLLib.setLoadHints( QLibrary::LoadHint::ResolveAllSymbolsHint );
if ( ! openCLLib.load() )
{
Expand Down

0 comments on commit a923341

Please sign in to comment.