Skip to content

Commit 34dff47

Browse files
removed extra files and updated compile.sh
1 parent 5842a79 commit 34dff47

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11

22
.DS_Store
3+
A1/test.cpp
4+
A1/a.out
5+
A1/data.txt
6+
A1/data.txt
7+
A1/data.txt
8+
A1/data.txt
9+
A1/data.txt
10+
A1/data.txt
11+
*.txt
12+
A1/data.txt
13+
A1/data.txt
14+
A1/seq.cpp

A1/compile.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
if [ "$1" == "s" ]; then
3+
clang++ sequential.cpp
4+
elif [ "$1" == "p" ]; then
5+
clang++ -Xpreprocessor -pthread pthread.cpp -lpthread
6+
elif [ "$1" == "o" ]; then
7+
clang++ -Xpreprocessor -fopenmp openmp.cpp -lomp
8+
else
9+
echo "Supply appropriate and correct arguments"
10+
exit
11+
fi

A1/data.txt

-7
This file was deleted.

0 commit comments

Comments
 (0)