Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alonski/jubilant-invention
https://github.com/alonski/jubilant-invention
hacktoberfest
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alonski/jubilant-invention
- Owner: Alonski
- Created: 2020-10-02T06:56:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-17T10:29:00.000Z (about 4 years ago)
- Last Synced: 2024-10-31T00:12:29.445Z (2 months ago)
- Topics: hacktoberfest
- Language: C
- Homepage:
- Size: 260 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parallel Programming Histogram
Created by Alon Bukai and Oleg Danilyuk
## Instructions to Build
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.
## Instructions to Run
This project must be run using `make run`.
### An example to run the program expecting input from stdin:
```sh
make run
```The above should receive the amount of numbers from stdin and then request all number inputs from stdin.
### An example to run the program directly in one command:
```sh
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:
```sh
====== Histogram ======
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
```