Skip to content

Testing configurations for differentiating code where Simbody is a dependent library.

Notifications You must be signed in to change notification settings

nickbianco/SimbodyEnzymeSandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimbodyEnzymeSandbox

A sandbox for testing the Enzyme automatic differentiation framework on code where Simbody is a dependent library of the source code (e.g., OpenSim).

Install LLVM

Enzyme requires LLVM 15+ with Clang and LLD enabled. See the Dev Container instructions below to configure Clang and LLD.

Install the dependencies

Install Simbody and Enzyme via dependencies/CMakeLists.txt.

Dev Container

To use the version of LLVM Clang installed in the container, update the cmake-tools-kits.json with the following entry (see .devcontainer/llvm-18-cmake-kit.json). You may need to close and reopen the container for the changes to take effect.

{
    "name": "LLVM 18 Clang",
    "compilers": {
      "C": "/opt/llvm-project/build/bin/clang",
      "CXX": "/opt/llvm-project/build/bin/clang++"
    },
    "isTrusted": true
}

Set the LLVM_DIR CMake variable in dependencies/.vscode/settings.json.

"cmake.configureSettings": {
    "LLVM_DIR": "/opt/llvm-project/build/lib/cmake/llvm",
}

About

Testing configurations for differentiating code where Simbody is a dependent library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published