Created by Alon Bukai and Oleg Danilyuk
To build this project a Makefile is included.
Just run make
in your terminal.
Make sure that your CUDA runtime is here: /usr/local/cuda-9.1/lib64/libcudart_static.a
Edit the makefile
if your CUDA runtime is in a different location.
This project must be run using make run
.
make run
The above should receive the amount of numbers from stdin and then request all number inputs from stdin.
make run < <(echo '28 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7')
The above should print the following histogram:
====== Histogram ======
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7