copied over files from PA6

This commit is contained in:
Ziad Arafat committed 2023-04-17 13:41:56 -06:00
1 parent 211da69055
commit 33fe9b85c1
5 files changed
+70

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
*.o
*.mod
gaussian_elimination
matrix.txt
test.txt
.ipynb_checkpoints
+14
View File
@@ -0,0 +1,14 @@
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
# Variables so its easy to make changes if I need to (it ended up being helpful)
all: test
test: concurrency.py
@echo "${green}For N = 4${reset}"
python3 concurrency.py 4
@echo "${green}For N = 8${reset}"
python3 concurrency.py 8
@echo "${green}For N = 16${reset}"
python3 concurrency.py 16
+12
View File
@@ -0,0 +1,12 @@
## Usage
### Testing the code
1. Execute the code for N=4,8,16
1. `make`
### Executing The python program alone
1. `python3 concurrency.py N`
1. Where N is the size of the NxN matrix
File renamed without changes.
+38
View File
@@ -0,0 +1,38 @@
For N = 4
python3 concurrency.py 4
Task 2:
Max value: 1002791
Min value: 65525
Average value: 583485.875
Time taken to compute max, min, and average: 0.01618999522179365 milliseconds
Task 3:
Max value: 1002791
Min value: 65525
Average value: 583485.875
Time taken to compute max, min, and average: 1.744865090586245 milliseconds
For N = 8
python3 concurrency.py 8
Task 2:
Max value: 1020370
Min value: 1930
Average value: 575740.203125
Time taken to compute max, min, and average: 0.04111998714506626 milliseconds
Task 3:
Max value: 1020370
Min value: 1930
Average value: 575740.203125
Time taken to compute max, min, and average: 2.4326330749318004 milliseconds
For N = 16
python3 concurrency.py 16
Task 2:
Max value: 1045169
Min value: 515
Average value: 508425.93359375
Time taken to compute max, min, and average: 0.19333104137331247 milliseconds
Task 3:
Max value: 1045169
Min value: 515
Average value: 508425.93359375
Time taken to compute max, min, and average: 3.607164020650089 milliseconds