Skip to content

Deprecate JIT runtime override methods that take void *#6344

Merged
abadams merged 2 commits intomasterfrom
abadams/custom_cuda_context_2
Oct 26, 2021
Merged

Deprecate JIT runtime override methods that take void *#6344
abadams merged 2 commits intomasterfrom
abadams/custom_cuda_context_2

Conversation

@abadams
Copy link
Copy Markdown
Member

@abadams abadams commented Oct 22, 2021

Takes care of the TODO from the previous PR exposing JITUserContext.

This deprecates things like set_custom_error in favor of just mutating the jit_handlers() struct

Copy link
Copy Markdown
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

LGTM except for comments

Comment thread src/JITModule.h Outdated
/** A set of custom overrides of runtime functions */
struct JITHandlers {
/** Set the function called to print messages from the runtime.
* If you are compiling statically, you can also just define your
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The comments about "if you are compiling statically" are arguably confusing and/or misplaced here. I'd suggest replacing everything after the first sentence with something like "(Note that this applies only when jitting code; if you are doing ahead-of-time compilation, see [README_foo.md or wherever we document this, rather than trying to replicate that documentation here])".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@abadams abadams merged commit 86cb6c7 into master Oct 26, 2021
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.

2 participants