Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: cyberspacemonkey on July 05, 2015, 11:04:19 PM



Title: Help porting C to CUDA and then move branching to CPU.
Post by: cyberspacemonkey on July 05, 2015, 11:04:19 PM
I'd like to learn how to Mod ccminer to improve performance by moving the branching part to the CPU and run only the hashing algos on GPU, can someone guide me step by step? or can at least tell me where can I find a guide for that? I understand it's difficult but I'd appreciate any help.


Title: Re: Help porting C to CUDA and then move branching to CPU.
Post by: sp_ on July 06, 2015, 07:25:29 AM
Ccminer is already doing all the hashing code on the gpu, but when it finds a solution it verifies the result on the CPU.


Title: Re: Help porting C to CUDA and then move branching to CPU.
Post by: djm34 on July 06, 2015, 10:40:19 AM
I'd like to learn how to Mod ccminer to improve performance by moving the branching part to the CPU and run only the hashing algos on GPU, can someone guide me step by step? or can at least tell me where can I find a guide for that? I understand it's difficult but I'd appreciate any help.
what branching part ?
as sp_ wrote, everything is already done on gpu except the (unnecessary) cpu validation ( where the result to gpu algo is compared to the "original" cpu algo)

By branching if you mean to merge together all the kernel into one big entity then it will kill the performance (not enough registers)


Title: Re: Help porting C to CUDA and then move branching to CPU.
Post by: cyberspacemonkey on July 06, 2015, 09:04:29 PM
I'd like to learn how to Mod ccminer to improve performance by moving the branching part to the CPU and run only the hashing algos on GPU, can someone guide me step by step? or can at least tell me where can I find a guide for that? I understand it's difficult but I'd appreciate any help.
what branching part ?
as sp_ wrote, everything is already done on gpu except the (unnecessary) cpu validation ( where the result to gpu algo is compared to the "original" cpu algo)

By branching if you mean to merge together all the kernel into one big entity then it will kill the performance (not enough registers)


How would I go about modifying my ccminer to improve performance then?


Title: Re: Help porting C to CUDA and then move branching to CPU.
Post by: djm34 on July 06, 2015, 11:08:33 PM
I'd like to learn how to Mod ccminer to improve performance by moving the branching part to the CPU and run only the hashing algos on GPU, can someone guide me step by step? or can at least tell me where can I find a guide for that? I understand it's difficult but I'd appreciate any help.
what branching part ?
as sp_ wrote, everything is already done on gpu except the (unnecessary) cpu validation ( where the result to gpu algo is compared to the "original" cpu algo)

By branching if you mean to merge together all the kernel into one big entity then it will kill the performance (not enough registers)


How would I go about modifying my ccminer to improve performance then?
rewrite the algos


Title: Re: Help porting C to CUDA and then move branching to CPU.
Post by: cyberspacemonkey on July 07, 2015, 02:23:37 AM
I'd like to learn how to Mod ccminer to improve performance by moving the branching part to the CPU and run only the hashing algos on GPU, can someone guide me step by step? or can at least tell me where can I find a guide for that? I understand it's difficult but I'd appreciate any help.
what branching part ?
as sp_ wrote, everything is already done on gpu except the (unnecessary) cpu validation ( where the result to gpu algo is compared to the "original" cpu algo)

By branching if you mean to merge together all the kernel into one big entity then it will kill the performance (not enough registers)


How would I go about modifying my ccminer to improve performance then?
rewrite the algos

Sounds difficult, but is it possible? if so how would I start? thanks for replying by the way.