Skip to content

Conversation

@timholy
Copy link
Member

@timholy timholy commented Mar 23, 2025

This also enhances its implementation to make it more flexible.

Closes #411

timholy added 2 commits March 23, 2025 02:35
This also enhances its implementation to make it more flexible.

Closes #411
Comment on lines +274 to +275
If `mi` has been compiled by the time its defining module "closes" (the final
`end` of the module definition) and `isprecompilable(mi)` returns `true`, then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If mi has been compiled by the time its defining module "closes" (the final
end of the module definition)

When might this happen? Would it mean that the defining module would need to call mi?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If mi corresponds to f(x), then just calling f(x) before the module closes will do it. For the inferrable callees of this method, it won't matter if it's inside or outside a @compile_workload block. For any runtime-dispatched ones, it will matter a lot. But if you're thinking about a single "flame" on the flamegraph, that's irrelevant, because one flame = the inferrable callees of the entrypoint (base of the flame).

Copy link
Contributor

@charleskawczynski charleskawczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I posted a few comments / suggestions, but overall looks good, thank you!

timholy and others added 4 commits March 26, 2025 09:10
@timholy timholy merged commit e6b7fa8 into master Mar 26, 2025
11 of 15 checks passed
@timholy timholy deleted the teh/ispc_docs branch March 26, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user-documentation for isprecompilable

3 participants