Skip to content

Bugreport for complex codebase (probably some math problem) #1613

Closed
@FROL256

Description

Greetings!
I have a project on differential rendering (path tracer) which uses Enzyme.

While working with it I encounter some Enzyme bugs and i'm not sure how to report them correctly.
The problem is that i can't reproduce bug on simple code base, and simplifying the complex code base didn't helped me too -- it arises in different places related to math functions.

I have put files from clang bug report to this archive
https://drive.google.com/file/d/1NbskYqtnwYr1u4n_sppsGNw-Q8YVkrhy/view?usp=sharing

The buggy branch of my project is here
https://github.com/Ray-Tracing-Systems/HydraCore3/tree/ad_bug

It has a build instruction, but probably you will need to change some path related to clang and enzyme there ...

The problem arises on call gltfEval->FrDielectricPBRT
Inside FrDielectricPBRT different instructions are lead to bug, however the same function in separate project works
https://github.com/FROL256/enzyme_autodiff_examples

Suppose there is some problems with std::sqrt call because code complies if i remove them.
Please let me know if i could do something to make bug-report useful if it is not in that state currently)
Tnanks!

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions