You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
621 B

#ifndef OPENCLMANAGER_H
#define OPENCLMANAGER_H
#include <QObject>
#include <QCoreApplication>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusConnectionInterface>
#include <iostream>
#include <CL/cl.h>
class OpenCLManager : public QObject
{
Q_OBJECT
public:
OpenCLManager();
void connectToDBusSignals();
//uncrustify off
public slots:
//uncrustify on
void handleSuspendResume(bool isSuspending);
private:
cl_context context = nullptr;
cl_command_queue commandQueue = nullptr;
void initOpenCLResources();
void releaseOpenCLResources();
};
#endif //OPENCLMANAGER_H