-
Notifications
You must be signed in to change notification settings - Fork 145
Description
Hi @ludgerpaehler @wsmoses et al.,
I finally have some time to try to autodifferentiate prototypes for our BLAST codes (GB22 code WarpX, sibling particle accelerator code ImpactX). I started a test and demo case here:
BLAST-ImpactX/impactx#825
I am writing because I am stuck at an error
error: Enzyme: No augmented forward pass found for strcpy
While the error is sensible, strcpy is not math, I don't get how Enzyme might end up in there. Can you guide me to better ways to debug this or is this an internal bug?
I think this is picked up by a "name" attribute that we carry around with particle accelerator elements, but that attribute does not participate in any math...
The above link has the reproducer using the Clang plugin and a README that contains all instructions. I am attaching the detailed error message here:
OS details are Ubuntu 24.02, clang/llvm 16 and the latest development branch of Enzyme.
(In parallel, I'll try to get the LTO+LLDEnzyme plugin to run because more complex examples will later on often need more than one TU. Will report separately on findings.)