summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/amd_gpu
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-29 21:43:43 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-09-30 23:46:08 +0200
commit8babae3156430f5aa6b804f7c352ffb178097963 (patch)
tree6c09c50e518c1d6342c06b3890f71043fc0e90b5 /xmrstak/backend/amd/amd_gpu
parent4526840bb6347eaed7d80a807357f969f9c68a40 (diff)
downloadxmr-stak-8babae3156430f5aa6b804f7c352ffb178097963.zip
xmr-stak-8babae3156430f5aa6b804f7c352ffb178097963.tar.gz
cleanup includes
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp4
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.hpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 04e442a..deb0fc7 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -23,7 +23,6 @@
#ifdef _WIN32
#include <windows.h>
-const char* sSourcePath = "opencl\\cryptonight.cl";
static inline void port_sleep(size_t sec)
{
@@ -31,7 +30,6 @@ static inline void port_sleep(size_t sec)
}
#else
#include <unistd.h>
-const char* sSourcePath = "opencl/cryptonight.cl";
static inline void port_sleep(size_t sec)
{
@@ -46,7 +44,7 @@ static inline long long unsigned int int_port(size_t i)
}
#endif
-#include "gpu.h"
+#include "gpu.hpp"
const char* err_to_str(cl_int ret)
{
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.hpp b/xmrstak/backend/amd/amd_gpu/gpu.hpp
index 8a71cfa..5ff7ea1 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.hpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include "xmrstak/misc/console.hpp"
+
#if defined(__APPLE__)
#include <OpenCL/cl.h>
#else
@@ -8,7 +10,6 @@
#include <stdint.h>
#include <vector>
-#include "../../../console.h"
#define ERR_SUCCESS (0)
#define ERR_OCL_API (2)
OpenPOWER on IntegriCloud