Skip to content

Commit b846a6f

Browse files
authored
Merge pull request #2449 from fireice-uk/dev
release 2.10.5
2 parents a5b8fb7 + 38dbae9 commit b846a6f

27 files changed

+1138
-556
lines changed

CMakeLists.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ endif()
4444
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${BUILD_TYPE}")
4545

4646
set(XMR-STAK_COMPILE "native" CACHE STRING "select CPU compute architecture")
47-
set_property(CACHE XMR-STAK_COMPILE PROPERTY STRINGS "native;generic")
47+
set_property(CACHE XMR-STAK_COMPILE PROPERTY STRINGS "native;generic;dev_release")
4848
if(XMR-STAK_COMPILE STREQUAL "native")
4949
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
5050
set(CMAKE_CXX_FLAGS "-march=native -mtune=native ${CMAKE_CXX_FLAGS}")
5151
set(CMAKE_C_FLAGS "-march=native -mtune=native ${CMAKE_C_FLAGS}")
5252
endif()
53-
elseif(XMR-STAK_COMPILE STREQUAL "generic")
53+
elseif(XMR-STAK_COMPILE STREQUAL "generic" OR XMR-STAK_COMPILE STREQUAL "dev_release")
5454
add_definitions("-DCONF_ENFORCE_OpenCL_1_2=1")
5555
else()
5656
message(FATAL_ERROR "XMR-STAK_COMPILE is set to an unknown value '${XMR-STAK_COMPILE}'")
@@ -496,6 +496,10 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
496496
set(CMAKE_C_FLAGS "-Wl,-z,noexecstack ${CMAKE_C_FLAGS}")
497497
endif()
498498

499+
if(XMR-STAK_COMPILE STREQUAL "dev_release")
500+
add_definitions(-DXMRSTAK_DEV_RELEASE)
501+
endif()
502+
499503
# activate static libgcc and libstdc++ linking
500504
if(CMAKE_LINK_STATIC)
501505
set(BUILD_SHARED_LIBRARIES OFF)
@@ -586,7 +590,16 @@ if(CUDA_FOUND)
586590
)
587591
endif()
588592

589-
set(CUDA_LIBRARIES ${CUDA_LIB} ${CUDA_NVRTC_LIB} ${CUDA_LIBRARIES})
593+
set(CUDA_LIBRARIES ${CUDA_LIB} ${CUDA_LIBRARIES})
594+
if(XMR-STAK_COMPILE STREQUAL "dev_release")
595+
# do not link nvrtc for linux binaries, cn-r will be disabled
596+
if(WIN32)
597+
set(CUDA_LIBRARIES ${CUDA_LIBRARIES} ${CUDA_NVRTC_LIB})
598+
endif()
599+
else()
600+
set(CUDA_LIBRARIES ${CUDA_LIBRARIES} ${CUDA_NVRTC_LIB})
601+
endif()
602+
590603
target_link_libraries(xmrstak_cuda_backend ${CUDA_LIBRARIES})
591604
target_link_libraries(xmrstak_cuda_backend xmr-stak-backend xmr-stak-asm)
592605
endif()

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Besides [Monero](https://getmonero.org), following coins can be mined using this
4949
- [Plenteum](https://www.plenteum.com/)
5050
- [QRL](https://theqrl.org)
5151
- **[Ryo](https://ryo-currency.com) - Upcoming xmr-stak-gui is sponsored by Ryo**
52-
- [Stellite](https://stellite.cash/)
52+
- [Torque](https://torque.cash/)
5353
- [TurtleCoin](https://turtlecoin.lol)
5454
- [Zelerius](https://zelerius.org/)
5555
- [X-CASH](https://x-network.io/)
@@ -72,7 +72,7 @@ If your prefered coin is not listed, you can choose one of the following algorit
7272
- cryptonight_v7_stellite
7373
- cryptonight_v8
7474
- cryptonight_v8_double (used by X-CASH)
75-
- cryptonight_v8_half (used by masari and stellite)
75+
- cryptonight_v8_half (used by masari and torque)
7676
- cryptonight_v8_reversewaltz (used by graft)
7777
- cryptonight_v8_zelerius
7878
- 4MiB scratchpad memory

xmrstak/backend/amd/amd_gpu/gpu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,17 +1280,17 @@ size_t XMRRunJob(GpuContext* ctx, cl_uint* HashOutput, const xmrstak_algo& miner
12801280
}
12811281
}
12821282

1283-
if((ret = clEnqueueNDRangeKernel(ctx->CommandQueues, Kernels[2], 2, Nonce, gthreads, lthreads, 0, NULL, NULL)) != CL_SUCCESS)
1283+
size_t NonceT[2] = {0, ctx->Nonce}, gthreadsT[2] = {8, g_thd}, lthreadsT[2] = {8 , w_size};
1284+
if((ret = clEnqueueNDRangeKernel(ctx->CommandQueues, Kernels[2], 2, NonceT, gthreadsT, lthreadsT, 0, NULL, NULL)) != CL_SUCCESS)
12841285
{
12851286
printer::inst()->print_msg(L1, "Error %s when calling clEnqueueNDRangeKernel for kernel %d.", err_to_str(ret), 2);
1286-
return ERR_OCL_API;
1287+
return ERR_OCL_API;
12871288
}
12881289

12891290
if(miner_algo != cryptonight_gpu)
12901291
{
12911292
for(int i = 0; i < 4; ++i)
12921293
{
1293-
size_t tmpNonce = ctx->Nonce;
12941294
if((ret = clEnqueueNDRangeKernel(ctx->CommandQueues, Kernels[i + 3], 1, &tmpNonce, &g_thd, &w_size, 0, NULL, NULL)) != CL_SUCCESS)
12951295
{
12961296
printer::inst()->print_msg(L1, "Error %s when calling clEnqueueNDRangeKernel for kernel %d.", err_to_str(ret), i + 3);

0 commit comments

Comments
 (0)