mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-12 01:42:48 -05:00
Restored OclCache.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user