Enzyme icon indicating copy to clipboard operation
Enzyme copied to clipboard

How to use enzyme in my makefile?

Open ZhangFengshun opened this issue 1 year ago • 2 comments

Hi there, I have installed Enzyme on my PC using Homebrew, and I want to use Enzyme in my CFD code. However, I don't know how to compile my code using Enzyme. The Makefile for my code is as follows: image And main code is like: image

ZhangFengshun avatar Jul 16 '24 05:07 ZhangFengshun

You should add an -fplugin=/path/to/ClangEnzyme-XX.so

wsmoses avatar Jul 16 '24 16:07 wsmoses

You should add an -fplugin=/path/to/ClangEnzyme-XX.so

Thank you, I tried to add this line but encountered some errors.

makefile: image

ouputs: image

ZhangFengshun avatar Jul 17 '24 00:07 ZhangFengshun