Skip to content

ADmode flags #453

Answered by wjakob
saeedhd96 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Saeed -- please take a look at the example of an AD computation graph in the Dr.Jit paper (Figure 10) and related discussion: https://rgl.s3.eu-central-1.amazonaws.com/media/papers/Jakob2022DrJit.pdf. This hopefully clarifies what edges and vertices are.

There are two aspects to this feature:

  • Lowering memory usage: by destroying the graph during traversal, Dr.Jit uses less memory, which is useful when using the system in wavefront model. For megakernels, there is no difference since Dr.Jit variables represent GPU registers that do not consume device global memory.
  • Correctness: At its core, the AD traversal of a graph is a very simple mechanical operation. You go through vertices in fo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by saeedhd96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants