Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes a couple of issues with hot reload:
Lookup modules are not reloaded after a hot reload, and trying to create an
NDBuffer
orTensor
after a hot reload has taken place will fail. The fix is to add a hot reload hook for lookup modules.Changing a loaded module, then e.g. evaluating a cell in Jupyter will still run the old shader code. The hot reload trigger runs on dispatch, and the shader is reloaded only after the next dispatch. This can be confusing when things don't run in a loop, e.g. in an interactive environment, as you need to run a cell twice to see the reloaded code. The fix is to re-add a jupyer hook that triggers a hot reload check before jupyter cells are evaluated.
This exposes hot reload functionality on the device. Input on how to expose this differently is welcome!