1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-04-26 16:02:46 -04:00

Added initial OpenCL stub.

This commit is contained in:
XMRig
2019-08-13 01:44:52 +07:00
parent a9103dd1ae
commit 36da54b8ce
28 changed files with 6788 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
if (WITH_OPENCL)
add_definitions(/DCL_TARGET_OPENCL_VERSION=200)
add_definitions(/DCL_USE_DEPRECATED_OPENCL_1_2_APIS)
add_definitions(/DXMRIG_FEATURE_OPENCL)
set(HEADERS_BACKEND_OPENCL
src/backend/opencl/OclError.h
src/backend/opencl/OclLib.h
)
set(SOURCES_BACKEND_OPENCL
src/backend/opencl/OclError.cpp
src/backend/opencl/OclLib.cpp
)
else()
remove_definitions(/DXMRIG_FEATURE_OPENCL)
set(HEADERS_BACKEND_OPENCL "")
set(SOURCES_BACKEND_OPENCL "")
endif()