Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use enzyme in my makefile? #1992

Open
ZhangFengshun opened this issue Jul 16, 2024 · 2 comments
Open

How to use enzyme in my makefile? #1992

ZhangFengshun opened this issue Jul 16, 2024 · 2 comments

Comments

@ZhangFengshun
Copy link

ZhangFengshun commented Jul 16, 2024

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

@wsmoses
Copy link
Member

wsmoses commented Jul 16, 2024

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

@ZhangFengshun
Copy link
Author

ZhangFengshun commented Jul 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants