https://github.com/enzymead/cmake-template
🔨 A template for using Enzyme with CMake
https://github.com/enzymead/cmake-template
cmake enzyme-ad template
Last synced: 3 months ago
JSON representation
🔨 A template for using Enzyme with CMake
- Host: GitHub
- URL: https://github.com/enzymead/cmake-template
- Owner: EnzymeAD
- License: mit
- Created: 2022-02-06T23:45:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-17T12:24:00.000Z (over 1 year ago)
- Last Synced: 2025-01-05T15:48:37.690Z (5 months ago)
- Topics: cmake, enzyme-ad, template
- Language: C
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMake-Template
## Usage
### Install dependencies
- cmake
- make
- llvm
- enzymeUsing spack:
```
spack env activate .
spack install
```Using homebrew:
```
brew bundle install
```### Configure and build
Configure the CMake project using the version of Enzyme installed on the system:
```
mkdir build && cd build
cmake ..
make
```Configure the CMake project using a custom Enzyme version:
```
mkdir build && cd build
cmake -DEnzyme_DIR=/path/to/Enzyme/enzyme/build
make
```