Skip to content

Conversation

@nkoukpaizan
Copy link
Collaborator

This improves the method to find Enzyme and related libraries via CMake.

Should fix #47

@nkoukpaizan nkoukpaizan self-assigned this Jan 27, 2025
@pelesh
Copy link
Collaborator

pelesh commented Jan 28, 2025

CC @ashermancinelli

@shakedregev
Copy link
Collaborator

shakedregev commented Jan 28, 2025

[ 88%] Running Enzyme opt pass on target EnzymeStandaloneCheck
LLVM ERROR: Could not load library '/opt/homebrew/Cellar/llvm/19.1.7/lib': dlopen(/opt/homebrew/Cellar/llvm/19.1.7/lib, 0x0009): tried: '/opt/homebrew/Cellar/llvm/19.1.7/lib' (not a file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/llvm/19.1.7/lib' (no such file), '/opt/homebrew/Cellar/llvm/19.1.7/lib' (not a file)

make[2]: *** [examples/Enzyme/Standalone/EnzymeStandaloneCheck_enzyme.ll] Error 1
make[1]: *** [examples/Enzyme/Standalone/CMakeFiles/EnzymeStandaloneCheck_target.dir/all] Error 2

Can you let me know what I should change my ccmake variables to? It's not like before this I was able to build with Enzyme, but presumably the point was to make this easier.

Copy link
Collaborator

@shakedregev shakedregev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests pass

@pelesh pelesh merged commit 88cecaa into develop Feb 10, 2025
2 checks passed
pelesh pushed a commit that referenced this pull request Apr 14, 2025
* Improve the way to find Enzyme.

* Add missing 'REQUIRED' argument to find_library.

* Explicitly look for .dylib and .dll in addition to .so. Not providing an extension does not seem to work for Enzyme plugin.
@nkoukpaizan nkoukpaizan deleted the nicholson/improve-findEnzyme branch May 13, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues building with Enzyme

4 participants