libshell
libshell copied to clipboard
Skeleton of Enzyme Build
This PR demos how to modify the CMakeLists.txt to build with Enzyme. It also includes a very simple example of a function being autodiffed by Enzyme.
I have verified that the square
and dsquare
function appear in liblibshell.a when building. This PR is not intended to be merged as-is.
CMake build mostly-poached from https://github.com/EnzymeAD/CMake-Template
Usage:
mkdir build && cd build
cmake -DEnzyme_DIR=/path/to/Enzyme/enzyme/build
make
If Enzyme is installed in a system path, the DEnzyme_DIR
argument to cmake can be dropped.