Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 9_multisource/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ clean:

lib.exe: myblas.o multisource.o
../dockerscript.sh clang-12 -fuse-ld=lld -flto /host/myblas.o /host/multisource.o -O2 -ffast-math -o /host/$@ -Wl,-mllvm=-load=/Enzyme/enzyme/build/Enzyme/LLDEnzyme-12.so
# for more recent LLVM versions (tested with v16.0.2) you have to do something like the following (using my tested, non-docker based install, extension to Docker is obvious but
# I am not posting it since I cannot test it)
# clang -fuse-ld=lld -flto ./myblas.o ./multisource.o -O2 -ffast-math -o ./$@ -Wl,--load-pass-plugin=../../Enzyme/enzyme/build/Enzyme/LLDEnzyme-16.so

run-%: %.exe
../dockerscript.sh /host/$^ 3