Skip to content

Commit

Permalink
unlock intensity
Browse files Browse the repository at this point in the history
default intensity is 16, use -i to adjust it
  • Loading branch information
djm34 committed Dec 10, 2018
1 parent 3a20a06 commit bdaefdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions RUN-ZCOIN-MTP.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

rem x64\Release\ccminer -a mtp -o http://127.0.0.1:8382 -u djm34 -p password --coinbase-addr aChWVb8CpgajadpLmiwDZvZaKizQgHxfh5-d 1080 --no-getwork
x64\Release\ccminer -a mtp -o stratum+tcp://testnet.mintpond.com:3000 -u TJgLGLyGBSgeFuAT4iWaTtWeXDAjAr4ZS4 -p 0 -d 1070
x64\Release\ccminer -a mtp -o http://127.0.0.1:8382 -u djm34 -p password --coinbase-addr aDn7MMYjVQqenT11VFDYHfFdwXmSTRUTak -d 1070 --no-getwork -i 18
rem x64\Release\ccminer -a mtp -o stratum+tcp://testnet.mintpond.com:3000 -u TJgLGLyGBSgeFuAT4iWaTtWeXDAjAr4ZS4 -p 0 -d 1070

pause
1 change: 1 addition & 0 deletions cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ int cuda_finddevice(char *name)
// since 1.7
uint32_t cuda_default_throughput(int thr_id, uint32_t defcount)
{
printf("defcount %d \n",defcount);
//int dev_id = device_map[thr_id % MAX_GPUS];
uint32_t throughput = gpus_intensity[thr_id] ? gpus_intensity[thr_id] : defcount;
if (gpu_threads > 1 && throughput == defcount) throughput /= (gpu_threads-1);
Expand Down
8 changes: 4 additions & 4 deletions cuda_mtp/mtp.cu
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ extern "C" int scanhash_mtp(int thr_id, struct work* work, uint32_t max_nonce, u
// cudaSetDeviceFlags(cudaDeviceScheduleBlockingSync);
// cudaSetDeviceFlags(cudaDeviceScheduleYield);

int intensity = (device_sm[dev_id] >= 500 && !is_windows()) ? 17 : 16;
if (device_sm[device_map[thr_id]] == 500) intensity = 15;
intensity = 1;
// int intensity = (device_sm[dev_id] >= 500 && !is_windows()) ? 17 : 16;
// if (device_sm[device_map[thr_id]] == 500) intensity = 15;
int intensity = 16;
throughput = cuda_default_throughput(thr_id, 1U << intensity); // 18=256*256*4;
throughput = 1024*64;
// throughput = 1024*64;
if (init[thr_id]) throughput = min(throughput, max_nonce - first_nonce);

cudaDeviceProp props;
Expand Down

0 comments on commit bdaefdf

Please sign in to comment.