#ECE420Lab1 Code for ECE 420 Lab 1
The purpose of the lab is to create a variable thread (determined via command line arguments) parrallel matrix multiplier. It takes a .txt file as input generated by matrixgen in data_input.txt, and outputs the resultant matrix to data_output.txt. The only student written code is in main.c (the actual parallel algorithm and thread handline) and Makefile (compilation via shell gcc commands).
##Simple Run Instructions:
- Run "make" to compile, or "make run" to compile and run the check
##Make Command List:
- type make followed by one of the commands to execute it
###compile (default command):
- runs clean, main, matrixgen, and serialchecker
- can be called by just running "make"
###clean:
- removes tmp/, main.exe, main.o, matrixgen.exe, matrixgen.o, serialtester.exe, serialtester.o, data_input.txt, data_output.txt,
###fix:
- changes the permissions for check.sh to include u+x
###main:
- compiles main.c and lab1_IO.c main.o or main.exe (cygwin)
###serialchecker:
- compiles serialchecker and lab1_IO.c serialchecker.o or serialchecker.exe (cygwin)
###matrixgen:
- compiles matrixgen.c with output matrixgen.o or matrixgen.exe (cygwin)
###check:
- runs "./check.sh"
###run:
- runs compile, fix, and check