cuda kernel for bruteforce calculation