diff --git a/pkg/resourceprovider/cudaminer/keccak.cu b/pkg/resourceprovider/cudaminer/keccak.cu index c50df832..2ff0708c 100644 --- a/pkg/resourceprovider/cudaminer/keccak.cu +++ b/pkg/resourceprovider/cudaminer/keccak.cu @@ -327,40 +327,3 @@ extern "C" __global__ __launch_bounds__(1024) delete nonce;//45 } - - -extern "C" __global__ __launch_bounds__(1024) - - void kernel_lilypad_pow_debug(uint8_t* chanllenge, uint64_t* startNonce, uint64_t* target, uint64_t n_batch, uint8_t* resNonce, uint8_t *hash, uint8_t *pack) -{ - uint64_t thread = blockIdx.x * blockDim.x + threadIdx.x; //4 - if (thread >= n_batch) {//36 - return; - } - - //pack input - uint8_t in[64]; - memcpy(in, chanllenge, 32); - //increase nonce - uint8_t* nonce = (uint8_t*)addUint256(startNonce, thread);//35 - uint8_t nonce_rev[32]; - reverse32BytesInPlace(nonce, nonce_rev);//18 - memcpy(in+32, nonce_rev, 32); - - - uint8_t out[32]; - CUDA_KECCAK_CTX ctx; - cuda_keccak_init(&ctx); //6 - cuda_keccak_update(&ctx, in,64); //12 - cuda_keccak_final_rev(&ctx, out); //6 - - if (hashbelowtarget((uint64_t*)out, target)) {//49 - // uint8_t out_rev[64]; - // reverse32BytesInPlace(out, out_rev);//18 - // memcpy(hash, out_rev, 32); - // memcpy(pack, in, 64); - memcpy(resNonce, nonce_rev, 32); - } - - delete nonce;//45 -} diff --git a/pkg/resourceprovider/cudaworker.go b/pkg/resourceprovider/cudaworker.go index 418ab269..a54ad460 100644 --- a/pkg/resourceprovider/cudaworker.go +++ b/pkg/resourceprovider/cudaworker.go @@ -1,5 +1,5 @@ -//go:build linux -// +build linux +//go:build cuda +// +build cuda package resourceprovider diff --git a/pkg/resourceprovider/others_os.go b/pkg/resourceprovider/others_os.go index 0f561b18..acd434c3 100644 --- a/pkg/resourceprovider/others_os.go +++ b/pkg/resourceprovider/others_os.go @@ -1,5 +1,5 @@ -//go:build !linux -// +build !linux +//go:build !cuda +// +build !cuda package resourceprovider