File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed
Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 2020#include " cpl_string.h"
2121#include " qgsfeedback.h"
2222#include " qgsogrutils.h"
23+ #include " qgsmessagelog.h"
2324#include < QFile>
2425#include < QDebug>
2526#include < QFileInfo>
Original file line number Diff line number Diff line change 2424
2525QLatin1String QgsOpenClUtils::SETTINGS_KEY = QLatin1Literal( " OpenClEnabled" );
2626QLatin1String QgsOpenClUtils::LOGMESSAGE_TAG = QLatin1Literal( " OpenCL" );
27- std::unique_ptr<cl::Context> QgsOpenClUtils::sContext = nullptr ;
2827bool QgsOpenClUtils::sAvailable = false ;
2928
3029
@@ -71,10 +70,6 @@ void QgsOpenClUtils::init()
7170 else
7271 {
7372 cl::Device::setDefault ( dev );
74- std::vector<cl::Device> devices;
75- devices.push_back ( cl::Device::getDefault () );
76- sContext = qgis::make_unique<cl::Context>( devices );
77- cl::Context::setDefault ( *sContext );
7873 sAvailable = true ;
7974 }
8075 }
Original file line number Diff line number Diff line change 2727#include " qgis_core.h"
2828#include " qgis.h"
2929
30- // TODO: remove
31- #include " qgsmessagelog.h"
32-
3330
3431/* *
3532 * \ingroup core
@@ -52,8 +49,6 @@ class CORE_EXPORT QgsOpenClUtils
5249 QgsOpenClUtils ();
5350 static void init ();
5451 static bool sAvailable ;
55- // TODO: check if this is needed
56- static std::unique_ptr<cl::Context> sContext ;
5752 static QLatin1String SETTINGS_KEY;
5853
5954};
You can’t perform that action at this time.
0 commit comments