Skip to content

Commit

Permalink
ceed - set JiT source dirs on fallback ceed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt authored Oct 18, 2024
1 parent b5030a2 commit 8c5f31d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions interface/ceed.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,15 @@ int CeedGetOperatorFallbackCeed(Ceed ceed, Ceed *fallback_ceed) {
fallback_ceed->op_fallback_parent = ceed;
fallback_ceed->Error = ceed->Error;
ceed->op_fallback_ceed = fallback_ceed;
{
const char **jit_source_dirs;
CeedInt num_jit_source_dirs = 0;

CeedCall(CeedGetJitSourceRoots(ceed, &num_jit_source_dirs, &jit_source_dirs));
for (CeedInt i = 0; i < num_jit_source_dirs; i++) {
CeedCall(CeedAddJitSourceRoot(fallback_ceed, jit_source_dirs[i]);));
}
CeedCall(CeedRestoreJitSourceRoots(ceed, &jit_source_dirs));
}
*fallback_ceed = ceed->op_fallback_ceed;
return CEED_ERROR_SUCCESS;
Expand Down

0 comments on commit 8c5f31d

Please sign in to comment.