small parameter changes in cuda mining

Signed-off-by: RubenCGomes <rlcg@ua.pt>
This commit is contained in:
RubenCGomes 2025-11-24 09:43:47 +00:00
parent 2a178133a6
commit 6e71b65b6d
No known key found for this signature in database
GPG Key ID: 0D213021197E3EE0
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ static void mine_coins_cuda(u64_t max_attempts, double max_time)
// Kernel configuration // Kernel configuration
cd.block_dim_x = RECOMMENDED_CUDA_BLOCK_SIZE; cd.block_dim_x = RECOMMENDED_CUDA_BLOCK_SIZE;
cd.grid_dim_x = 4096; // Large grid for maximum GPU utilization cd.grid_dim_x = 400; // Large grid for maximum GPU utilization
u32_t n_threads = cd.grid_dim_x * cd.block_dim_x; u32_t n_threads = cd.grid_dim_x * cd.block_dim_x;
@ -89,7 +89,7 @@ static void mine_coins_cuda(u64_t max_attempts, double max_time)
printf("Press Ctrl+C to stop\n\n"); printf("Press Ctrl+C to stop\n\n");
u64_t base_nonce = 0; u64_t base_nonce = 0;
u32_t attempts_per_thread = 1024 * 8; // Increased attempts per thread u32_t attempts_per_thread = 1024 * 16; // Increased attempts per thread
double start_time = get_wall_time(); double start_time = get_wall_time();
time_measurement(); time_measurement();

View File

@ -28,7 +28,7 @@
// //
// we place this here to simplify things (aad_sha1_cuda_kernel.cu includes this file...) // we place this here to simplify things (aad_sha1_cuda_kernel.cu includes this file...)
// //
#define RECOMMENDED_CUDA_BLOCK_SIZE 128 #define RECOMMENDED_CUDA_BLOCK_SIZE 256
// //