Driver: no longer instantiating events when unnecessary ; general cleaning of the driver module

This commit is contained in:
Philippe Tillet
2015-12-21 18:43:05 -05:00
parent 05af3ccc10
commit f2c3aa0acb
12 changed files with 104 additions and 20 deletions

View File

@@ -39,16 +39,22 @@ class Device;
class ISAACAPI Program
{
public:
typedef HANDLE_TYPE(cl_program, CUmodule) handle_type;
private:
friend class Kernel;
public:
Program(Context const & context, std::string const & source);
Context const & context() const;
//Comparison operators
bool operator==(Program const & other) const;
bool operator<(Program const & other) const;
private:
DISABLE_MSVC_WARNING_C4251
backend_type backend_;
Context context_;
std::string source_;
HANDLE_TYPE(cl_program, CUmodule) h_;
handle_type h_;
RESTORE_MSVC_WARNING_C4251
};