Restored OclCache.
This commit is contained in:
parent
47b8cb6044
commit
ec1839d580
27 changed files with 290 additions and 72 deletions
|
@ -29,17 +29,26 @@
|
|||
#include <string>
|
||||
|
||||
|
||||
typedef struct _cl_program *cl_program;
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
class IOclRunner;
|
||||
|
||||
|
||||
class OclCache
|
||||
{
|
||||
public:
|
||||
|
||||
static cl_program build(const IOclRunner *runner);
|
||||
static std::string cacheKey(const char *deviceKey, const char *options, const char *source);
|
||||
static std::string cacheKey(const IOclRunner *runner);
|
||||
|
||||
private:
|
||||
void createDirectory() const;
|
||||
static std::string prefix();
|
||||
static void createDirectory();
|
||||
static void save(cl_program program, const std::string &fileName);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue