Due: Tue, 2022/5/10 23:59
Slides: https://docs.google.com/presentation/d/1d_Xi9UzD6BI3RHbO48W4R02h_6w_7locehqUPmDTzPk/edit?usp=sharing
In this homework, we provide you the sequential (CPU) code of the bitcoin miner. You are asked to parallelize it with CUDA. You may use any techniques that you’ve learned in this class!
First line of the input is an integer N represent number of blocks to solve.
Follow by N block of below data
hades:/home/ipc22/share/hw4/testcases/*.outWe use Hades server for this homework.
We use Makefile to build your code. The default Makefile for this homework is provided at /home/ipc22/share/hw4/sample/Makefile.If you wish to change the compilation flags, include Makefile in your submission.
To use Makefile to build your code, make sure Makefile, hw4.cu, sha256.cu, sha256.h are in the working directory, then run make on the command line and it will build hw4for you. To remove the built files, run make clean.
We will compile your code with the command make.
Your code will be executed with a command equalviant to:
srun -p ipc22 -N1 -n1 -c1 --gres=gpu:1 ./hw4 caseXX.in caseXX.out
The time limit for each test case is 240 seconds.