--
You received this message because you are subscribed to the Google Groups "Enzyme AD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enzyme-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/enzyme-dev/41dbb99e-5426-441d-a0fa-d80fb24c0829n%40googlegroups.com.
clang++ -target x86_64-pc-linux-gnu -c -fuse-ld=lld -flto -O2 test-enzyme.cpp -o test-enzyme.o
clang++ -target x86_64-pc-linux-gnu -c -fuse-ld=lld -flto -O2 afun.cpp -o afun.o
clang++ -target x86_64-pc-linux-gnu -fuse-ld=lld -flto -O2 test-enzyme.o afun.o -fplugin=/net/nfs.lebisilon/home/mixu/Software/Enzyme/enzyme/build/Enzyme/ClangEnzyme-16.so -o my_program
clang++ -target x86_64-pc-linux-gnu -fuse-ld=lld -flto -O2 test-enzyme.o afun.o -o my_program -Wl,-mllvm=-load=/net/nfs.lebisilon/home/mixu/Software/Enzyme/enzyme/build/Enzyme/LLVMEnzyme-16.so
Here are the simple codes.
afun.hpp
afun.cpp
clang++ -target x86_64-pc-linux-gnu -fuse-ld=lld -flto -O2 -Wl,-mllvm=-load=/net/nfs.lebisilon/home/mixu/Software/Enzyme/enzyme/build/Enzyme/LLDEnzyme-16.so /net/nfs.lebisilon/home/mixu/test/test_code/test-enzyme/obj/test-enzyme.o /net/nfs.lebisilon/home/mixu/test/test_code/test-enzyme/obj/afun.o -o /net/nfs.lebisilon/home/mixu/test/test_code/test-enzyme/my_programld.lld: error: undefined symbol: __enzyme_autodiff(void*, double)>>> referenced by ld-temp.o>>> lto.tmp:(main)>>> referenced by ld-temp.o>>> lto.tmp:(main)>>> referenced by ld-temp.o>>> lto.tmp:(main)>>> referenced 1 more timesclang-16: error: linker command failed with exit code 1 (use -v to see invocation)
To view this discussion on the web visit https://groups.google.com/d/msgid/enzyme-dev/edaa925b-c7d6-4636-a447-97aef2e02998n%40googlegroups.com.