cleanup includes

This commit is contained in:
psychocrypt
2017-09-30 23:46:08 +02:00
parent 4526840bb6
commit 8babae3156
47 changed files with 250 additions and 215 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ Performance is nearly identical to the closed source paid miners. Here are some
* **Dual E5640** - 365 H/s (same as above)
## Default dev donation
By default the miner will donate 2% of the hashpower (2 minute in 100 minutes) to my pool. If you want to change that, edit **donate-level.h** before you build the binaries.
By default the miner will donate 2% of the hashpower (2 minute in 100 minutes) to my pool. If you want to change that, edit **xmrstak/donate-level.hpp** before you build the binaries.
If you want to donate directly to support further development, here is my wallet
+1 -3
View File
@@ -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)
{
+2 -1
View File
@@ -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)
+5 -6
View File
@@ -1,14 +1,13 @@
#pragma once
#include "amd_gpu/gpu.hpp"
#include "autoAdjust.hpp"
#include "jconf.hpp"
#include "jconf.h"
#include "../../console.h"
#include "../../ConfigEditor.hpp"
#include "amd_gpu/gpu.h"
#include "../../Params.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
#include <vector>
#include <cstdio>
+7 -9
View File
@@ -22,11 +22,9 @@
*/
#include "jconf.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jconf.hpp"
#include "xmrstak/misc/jext.hpp"
#include "xmrstak/misc/console.hpp"
#ifdef _WIN32
#define strcasecmp _stricmp
@@ -35,10 +33,10 @@
#include <cpuid.h>
#endif
#include "../../rapidjson/document.h"
#include "../../rapidjson/error/en.h"
#include "../../jext.h"
#include "../../console.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
namespace xmrstak
{
+3 -1
View File
@@ -1,7 +1,9 @@
#pragma once
#include "xmrstak/params.hpp"
#include <stdlib.h>
#include <string>
#include "../../Params.hpp"
namespace xmrstak
{
+14 -17
View File
@@ -21,28 +21,25 @@
*
*/
#include "minethd.hpp"
#include "autoAdjust.hpp"
#include "amd_gpu/gpu.hpp"
#include "xmrstak/backend/cpu/crypto/cryptonight_aesni.h"
#include "xmrstak/backend/cpu/crypto/cryptonight.h"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/backend/cpu/minethd.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/executor.hpp"
#include "xmrstak/misc/environment.hpp"
#include "xmrstak/params.hpp"
#include <assert.h>
#include <cmath>
#include <chrono>
#include <thread>
#include "../../ConfigEditor.hpp"
#include "autoAdjust.hpp"
#include <vector>
#include "../../console.h"
#include "../../crypto/cryptonight_aesni.h"
#include "../cpu/minethd.h"
#include "../../jconf.h"
#include "../../executor.h"
#include "minethd.h"
#include "../../jconf.h"
#include "../../crypto/cryptonight.h"
#include "../../Environment.hpp"
#include "../../Params.hpp"
#include "amd_gpu/gpu.h"
namespace xmrstak
{
+6 -5
View File
@@ -1,11 +1,12 @@
#pragma once
#include "amd_gpu/gpu.hpp"
#include "jconf.hpp"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/misc/environment.hpp"
#include <thread>
#include <atomic>
#include "./jconf.h"
#include "../IBackend.hpp"
#include "../../Environment.hpp"
#include "amd_gpu/gpu.h"
namespace xmrstak
{
+18 -19
View File
@@ -21,6 +21,24 @@
*
*/
#include "iBackend.hpp"
#include "backendConnector.hpp"
#include "miner_work.hpp"
#include "globalStates.hpp"
#include "plugin.hpp"
#include "xmrstak/misc/environment.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/params.hpp"
#include "cpu/minethd.hpp"
#ifndef CONF_NO_CUDA
# include "nvidia/minethd.hpp"
#endif
#ifndef CONF_NO_OPENCL
# include "amd/minethd.hpp"
#endif
#include <cstdlib>
#include <assert.h>
#include <cmath>
#include <chrono>
@@ -28,29 +46,10 @@
#include <thread>
#include <bitset>
#include "IBackend.hpp"
#include "BackendConnector.hpp"
#include "cpu/minethd.h"
#ifndef CONF_NO_CUDA
# include "nvidia/minethd.h"
#endif
#ifndef CONF_NO_OPENCL
# include "amd/minethd.h"
#endif
#include "miner_work.h"
#include "GlobalStates.hpp"
#include <cstdlib>
#include "Plugin.hpp"
#include "../Environment.hpp"
#include "../console.h"
#include "../Params.hpp"
namespace xmrstak
{
bool BackendConnector::self_test()
{
+5 -2
View File
@@ -1,10 +1,13 @@
#pragma once
#include "iBackend.hpp"
#include "miner_work.hpp"
#include <thread>
#include <vector>
#include <atomic>
#include <mutex>
#include "IBackend.hpp"
#include "miner_work.h"
namespace xmrstak
{
+7 -5
View File
@@ -1,9 +1,11 @@
#pragma once
#include "jconf.h"
#include "../../console.h"
#include "../../jconf.h"
#include "../../ConfigEditor.hpp"
#include "../../Params.hpp"
#include "jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
#include <string>
#ifdef _WIN32
+7 -5
View File
@@ -1,9 +1,8 @@
#pragma once
#include "../../console.h"
#include <hwloc.h>
#include <stdio.h>
#include "../../Params.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
#ifdef _WIN32
#include <windows.h>
@@ -12,7 +11,10 @@
#endif // _WIN32
#include <string>
#include "../../ConfigEditor.hpp"
#include <hwloc.h>
#include <stdio.h>
namespace xmrstak
{
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "console.h"
#include "xmrstak/misc/console.hpp"
#ifndef CONF_NO_HWLOC
+5 -7
View File
@@ -21,13 +21,14 @@
*
*/
#include "jconf.h"
#include "../../console.h"
#include <iostream>
#include "jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/jext.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#ifdef _WIN32
#define strcasecmp _stricmp
@@ -36,9 +37,6 @@
#include <cpuid.h>
#endif
#include "../../rapidjson/document.h"
#include "../../rapidjson/error/en.h"
#include "../../jext.h"
namespace xmrstak
{
+3 -1
View File
@@ -1,7 +1,9 @@
#pragma once
#include "xmrstak/params.hpp"
#include <stdlib.h>
#include <string>
#include "../../Params.hpp"
namespace xmrstak
{
+12 -12
View File
@@ -27,19 +27,19 @@
#include <cstring>
#include <thread>
#include <bitset>
#include "../../console.h"
#include "../IBackend.hpp"
#include "../GlobalStates.hpp"
#include "../../ConfigEditor.hpp"
#include "../../Params.hpp"
#include "../../jconf.h"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/backend//globalStates.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
#include "xmrstak/jconf.hpp"
#include "../../executor.h"
#include "minethd.h"
#include "./jconf.h"
#include "../../crypto/cryptonight_aesni.h"
#include "../../hwlocMemory.hpp"
#include "../miner_work.h"
#include "xmrstak/misc/executor.hpp"
#include "minethd.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/backend/crypto/cryptonight_aesni.h"
#include "hwlocMemory.hpp"
#include "xmrstak/backend/miner_work.hpp"
#ifndef CONF_NO_HWLOC
# include "autoAdjustHwloc.hpp"
+7 -5
View File
@@ -1,13 +1,15 @@
#pragma once
#include "crypto/cryptonight.h"
#include "xmrstak/backend/miner_work.hpp"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/backend/globalStates.hpp"
#include <iostream>
#include <thread>
#include <vector>
#include <atomic>
#include <mutex>
#include "../../crypto/cryptonight.h"
#include "../miner_work.h"
#include "../IBackend.hpp"
#include "../GlobalStates.hpp"
#include <iostream>
namespace xmrstak
{
+3 -3
View File
@@ -21,15 +21,15 @@
*
*/
#include "miner_work.hpp"
#include "globalStates.hpp"
#include <assert.h>
#include <cmath>
#include <chrono>
#include <cstring>
#include "miner_work.h"
#include "GlobalStates.hpp"
namespace xmrstak
{
+5 -2
View File
@@ -1,7 +1,10 @@
#pragma once
#include "miner_work.hpp"
#include "xmrstak/misc/environment.hpp"
#include <atomic>
#include "miner_work.h"
#include "../Environment.hpp"
namespace xmrstak
{
+1
View File
@@ -1,4 +1,5 @@
#pragma once
#include <thread>
#include <atomic>
#include <mutex>
+5 -5
View File
@@ -3,11 +3,11 @@
#include "autoAdjust.hpp"
#include "nvcc_code/cryptonight.h"
#include "jconf.h"
#include "../../console.h"
#include "../../ConfigEditor.hpp"
#include "../../Params.hpp"
#include "nvcc_code/cryptonight.hpp"
#include "jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/params.hpp"
#include <vector>
#include <cstdio>
+3 -5
View File
@@ -21,7 +21,9 @@
*
*/
#include "jconf.h"
#include "jconf.hpp"
#include "xmrstak/miscjext.hpp"
#include "xmrstak/misc/console.hpp"
#include <stdio.h>
#include <stdlib.h>
@@ -34,10 +36,6 @@
#include <cpuid.h>
#endif
#include "../../rapidjson/document.h"
#include "../../rapidjson/error/en.h"
#include "../../jext.h"
#include "../../console.h"
namespace xmrstak
{
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
#include <stdlib.h>
#include <string>
#include "../../Params.hpp"
#include "xmrstak/params.hpp"
namespace xmrstak
{
+11 -12
View File
@@ -21,24 +21,23 @@
*
*/
#include "minethd.hpp"
#include "autoAdjust.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/backend/cpu/crypto/cryptonight_aesni.h"
#include "xmrstak/backend/cpu/crypto/cryptonight.h"
#include "xmrstak/backend/cpu//cpu/minethd.hpp"
#include "xmrstak/params.hpp"
#include "xmrstak/misc/executor.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/environment.hpp"
#include <assert.h>
#include <cmath>
#include <chrono>
#include <thread>
#include <bitset>
#include <vector>
#include "../../console.h"
#include "../../crypto/cryptonight_aesni.h"
#include "../cpu/minethd.h"
#include "../../Params.hpp"
#include "../../executor.h"
#include "minethd.h"
#include "../../jconf.h"
#include "../../crypto/cryptonight.h"
#include "../../Environment.hpp"
#include "autoAdjust.hpp"
#ifndef USE_PRECOMPILED_HEADERS
#ifdef WIN32
+11 -7
View File
@@ -1,14 +1,18 @@
#pragma once
#include "xmrstak/jconf.hpp"
#include "jconf.hpp"
#include "nvcc_code/cryptonight.h"
#include "xmrstak/bakcend/cpu/crypto/cryptonight.h"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/misc/environment.hpp"
#include <iostream>
#include <thread>
#include <atomic>
#include <vector>
#include "nvcc_code/cryptonight.h"
#include "../../crypto/cryptonight.h"
#include "../../jconf.h"
#include "./jconf.h"
#include "../IBackend.hpp"
#include "../../Environment.hpp"
#include <iostream>
namespace xmrstak
{
@@ -49,8 +49,8 @@ extern "C" void compat_usleep(uint64_t waitTime)
}
#endif
#include "cryptonight.h"
#include "cuda_extra.h"
#include "cryptonight.hpp"
#include "cuda_extra.hpp"
#include "cuda_aes.hpp"
#include "cuda_device.hpp"
@@ -25,8 +25,8 @@ uint64_t keccakf_rndc[24] ={
typedef unsigned char BitSequence;
typedef unsigned long long DataLength;
#include "cryptonight.h"
#include "cuda_extra.h"
#include "cryptonight.hpp"
#include "cuda_extra.hpp"
#include "cuda_keccak.hpp"
#include "cuda_blake.hpp"
#include "cuda_groestl.hpp"
+12 -10
View File
@@ -1,21 +1,23 @@
#pragma once
#include "xmrstak/misc/environment.hpp"
#include <thread>
#include <atomic>
#include <vector>
#include <string>
#include "IBackend.hpp"
#include "iBackend.hpp"
#include <iostream>
#include "../Environment.hpp"
#ifndef USE_PRECOMPILED_HEADERS
#ifdef WIN32
#include <direct.h>
#include <windows.h>
#else
#include <sys/types.h>
#include <dlfcn.h>
#endif
#include <iostream>
# ifdef WIN32
# include <direct.h>
# include <windows.h>
# else
# include <sys/types.h>
# include <dlfcn.h>
# endif
# include <iostream>
#endif
namespace xmrstak
+11 -13
View File
@@ -21,27 +21,25 @@
*
*/
#include "../executor.h"
#include "../backend/miner_work.h"
#include "../backend/GlobalStates.hpp"
#include "../backend/BackendConnector.hpp"
#include "../jconf.h"
#include "../console.h"
#include "../donate-level.h"
#include "../Params.hpp"
#include "../ConfigEditor.hpp"
#include "../version.h"
#include "xmrstak/misc/executor.hpp"
#include "xmrstak/backend/miner_work.hpp"
#include "xmrstak/backend/globalStates.hpp"
#include "xmrstak/backend/backendConnector.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/donate-level.hpp"
#include "xmrstak/params.hpp"
#include "xmrstak/misc/configEditor.hpp"
#include "xmrstak/version.hpp"
#ifndef CONF_NO_HTTPD
# include "../httpd.h"
# include "xmrstak/http//httpd.hpp"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <time.h>
#ifndef CONF_NO_TLS
+8 -8
View File
@@ -23,19 +23,19 @@
#ifndef CONF_NO_HTTPD
#include "httpd.hpp"
#include "webdesign.hpp"
#include "xmrstak/net/msgstruct.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/executor.hpp"
#include "xmrstak/jconf.hpp"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include "msgstruct.h"
#include "httpd.h"
#include "console.h"
#include "executor.h"
#include "jconf.h"
#include "webdesign.h"
#include <microhttpd.h>
#ifdef _WIN32
#define strcasecmp _stricmp
+2
View File
@@ -1,5 +1,7 @@
#pragma once
#include <stdlib.h>
struct MHD_Daemon;
struct MHD_Connection;
+6 -7
View File
@@ -21,8 +21,12 @@
*
*/
#include "jconf.h"
#include "console.h"
#include "jconf.hpp"
#include "params.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/jext.hpp"
#include "xmrstak/misc/console.hpp"
#include <stdio.h>
#include <stdlib.h>
@@ -35,11 +39,6 @@
#include <cpuid.h>
#endif
#include "rapidjson/document.h"
#include "rapidjson/error/en.h"
#include "jext.h"
#include "console.h"
#include "Params.hpp"
using namespace rapidjson;
+5 -2
View File
@@ -1,8 +1,11 @@
#pragma once
#include "xmrstak/misc/environment.hpp"
#include "params.hpp"
#include <stdlib.h>
#include <string>
#include "Environment.hpp"
#include "Params.hpp"
class jconf
{
+2 -1
View File
@@ -21,7 +21,8 @@
*
*/
#include "console.h"
#include "xmrstak/misc/console.hpp"
#include <time.h>
#include <stdio.h>
#include <string.h>
+4 -1
View File
@@ -1,6 +1,9 @@
#pragma once
#include "xmrstak/misc/environment.hpp"
#include <mutex>
#include "Environment.hpp"
enum out_colours { K_RED, K_GREEN, K_BLUE, K_YELLOW, K_CYAN, K_MAGENTA, K_WHITE, K_NONE };
+13 -12
View File
@@ -21,24 +21,25 @@
*
*/
#include "executor.hpp"
#include "xmrstak/net/jpsock.hpp"
#include "telemetry.hpp"
#include "xmrstak/backend/miner_work.hpp"
#include "xmrstak/backend/globalStates.hpp"
#include "xmrstak/backend/backendConnector.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/donate-level.hpp"
#include "xmrstak/http/webdesign.hpp"
#include <thread>
#include <string>
#include <cmath>
#include <algorithm>
#include <assert.h>
#include <time.h>
#include "executor.h"
#include "jpsock.h"
#include "telemetry.h"
#include "backend/miner_work.h"
#include "backend/GlobalStates.hpp"
#include "backend/BackendConnector.hpp"
#include "jconf.h"
#include "console.h"
#include "donate-level.h"
#include "webdesign.h"
#ifdef _WIN32
#define strncasecmp _strnicmp
+7 -5
View File
@@ -1,17 +1,19 @@
#pragma once
#include "thdq.hpp"
#include "msgstruct.h"
#include "telemetry.hpp"
#include "xmrstak/backend/iBackend.hpp"
#include "xmrstak/misc/environment.hpp"
#include "xmrstak/net/msgstruct.hpp"
#include <atomic>
#include <array>
#include <list>
#include <future>
#include "telemetry.h"
#include "backend/IBackend.hpp"
#include "Environment.hpp"
class jpsock;
namespace xmrstak
{
namespace cpu
+3
View File
@@ -1,5 +1,8 @@
#pragma once
#include "xmrstak/rapidjson/document.h"
#include "xmrstak/rapidjson/error/en.h"
using namespace rapidjson;
/* This macro brings rapidjson more in line with other libs */
+3 -1
View File
@@ -21,10 +21,12 @@
*
*/
#include "telemetry.hpp"
#include <cmath>
#include <cstring>
#include <chrono>
#include "telemetry.h"
namespace xmrstak
{
+1
View File
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <cstring>
namespace xmrstak
{
+8 -8
View File
@@ -24,15 +24,15 @@
#include <stdarg.h>
#include <assert.h>
#include "jpsock.h"
#include "executor.h"
#include "jconf.h"
#include "jpsock.hpp"
#include "socks.hpp"
#include "socket.hpp"
#include "xmrstak/misc/executor.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/jext.hpp"
#include "xmrstak/version.hpp"
#include "rapidjson/document.h"
#include "jext.h"
#include "socks.h"
#include "socket.h"
#include "version.h"
#define AGENTID_STR XMR_STAK_NAME "/" XMR_STAK_VERSION
+3 -1
View File
@@ -1,11 +1,13 @@
#pragma once
#include "msgstruct.hpp"
#include <mutex>
#include <atomic>
#include <condition_variable>
#include <thread>
#include <string>
#include "msgstruct.h"
/* Our pool can have two kinds of errors:
- Parsing or connection error
+1
View File
@@ -1,4 +1,5 @@
#pragma once
#include <string>
#include <string.h>
#include <assert.h>
+5 -5
View File
@@ -21,11 +21,11 @@
*
*/
#include "socket.h"
#include "jpsock.h"
#include "jconf.h"
#include "console.h"
#include "executor.h"
#include "socket.hpp"
#include "jpsock.hpp"
#include "xmrstak/jconf.hpp"
#include "xmrstak/misc/console.hpp"
#include "xmrstak/misc/executor.hpp"
#ifndef CONF_NO_TLS
#include <openssl/ssl.h>
+3 -1
View File
@@ -1,5 +1,7 @@
#pragma once
#include "socks.h"
#include "socks.hpp"
class jpsock;
class base_socket
+2
View File
@@ -1,4 +1,5 @@
#pragma once
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0601 /* Windows 7 */
@@ -7,6 +8,7 @@
#include <ws2tcpip.h>
#include <windows.h>
inline void sock_init()
{
static bool bWSAInit = false;
+3 -1
View File
@@ -1,6 +1,8 @@
#pragma once
#include "xmrstak/misc/environment.hpp"
#include <string>
#include "Environment.hpp"
namespace xmrstak
{