Skip to content

Commit

Permalink
fixup! Automatically enable JITPROFILING with ITTAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and giordano committed Nov 28, 2024
1 parent 3397b7a commit 4356ea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10435,7 +10435,9 @@ extern "C" void jl_init_llvm(void)
}
} else {
#ifdef USE_ITTAPI
jl_using_intel_jitevents = __itt_get_collection_state() == __itt_collection_init_successful;
__itt_collection_state state = __itt_get_collection_state();
jl_using_intel_jitevents = state == __itt_collection_init_successful ||
state == __itt_collection_collector_exists;
#endif
}
#endif
Expand Down

0 comments on commit 4356ea1

Please sign in to comment.