Skip to content

Commit

Permalink
*: multithreading
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed Aug 25, 2024
1 parent b9366a9 commit 7140f85
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 97 deletions.
18 changes: 18 additions & 0 deletions build-multithreading.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

export flags="--std=c99 -fopenmp -D VECDB_MULTITHREADING -Wall -Wextra -march=native -mtune=native -O3 -g"
export source=vecdb.c

# build asm output
cc \
$flags \
$source \
-S \
-fverbose-asm \
-o vecdb.s

# build executable
cc \
$flags \
$source \
-o vecdb
26 changes: 13 additions & 13 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh
gcc \
--std=c99 \
-Wall \
-Wextra \
-O3 \
vecdb.c \

export flags="--std=c99 -Wall -Wextra -march=native -mtune=native -O3 -g"
export source=vecdb.c

# build asm output
cc \
$flags \
$source \
-S \
-fverbose-asm \
-o vecdb.s

gcc \
--std=c99 \
-Wall \
-Wextra \
-O3 \
vecdb.c \
-o vecdb
# build executable
cc \
$flags \
$source \
-o vecdb
Loading

0 comments on commit 7140f85

Please sign in to comment.