From 33c4ca62100d9b76857a21a4f9082101da752767 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 6 Nov 2019 19:09:14 +0100 Subject: [PATCH] RandomX: fixed random kernel launch errors with some configurations --- src/RandomX/randomx.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomX/randomx.cu b/src/RandomX/randomx.cu index 7cd1df5..58076c8 100644 --- a/src/RandomX/randomx.cu +++ b/src/RandomX/randomx.cu @@ -30,7 +30,7 @@ along with RandomX CUDA. If not, see. void randomx_prepare(nvid_ctx *ctx, const void *dataset, size_t dataset_size, uint32_t batch_size) { ctx->rx_batch_size = batch_size; - ctx->d_scratchpads_size = batch_size * ctx->algorithm.l3(); + ctx->d_scratchpads_size = batch_size * (ctx->algorithm.l3() + 64); if (ctx->rx_dataset_host > 0) { ctx->rx_dataset_host_ptr = (void*) dataset;