Tried parallelizing the code, but the compiler can already do that automatically
This commit is contained in:
parent
1b0a9ab380
commit
66dc92b5f4
4 changed files with 605 additions and 522 deletions
|
@ -1,7 +1,10 @@
|
|||
BasedOnStyle: GNU
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
UseTab: Always
|
||||
BreakBeforeBraces: Attach
|
||||
ColumnLimit: 100
|
||||
AlignReturnType: Always
|
||||
PenaltyReturnTypeOnItsOwnLine: 1000000
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
SeparateDefinitionBlocks: Always
|
||||
|
|
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ ts := $(shell /usr/bin/date "+%d-%m__%H_%M_%S")
|
|||
.DEFAULT_GOAL = MD
|
||||
|
||||
MD: $(SRC)/MD.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -march=native -O2 -ftree-vectorize -funroll-loops -pg -g -o ./out/MD
|
||||
$(CC) $(CFLAGS) $(SRC)MD.cpp -lm -march=native -mtune=native -mavx -O2 -ftree-vectorize -funroll-loops -pg -g -o ./out/MD
|
||||
|
||||
MDorig: $(SRC)/MD-original.cpp
|
||||
$(CC) $(CFLAGS) $(SRC)MD-original.cpp -lm -O2 -pg -o ./out/MD-original
|
||||
|
|
BIN
out/MD
BIN
out/MD
Binary file not shown.
1118
src/MD.cpp
1118
src/MD.cpp
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue