Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Catch Incorrect Entrypoint Names #58

Open
natevm opened this issue Dec 28, 2022 · 0 comments
Open

Feature Request: Catch Incorrect Entrypoint Names #58

natevm opened this issue Dec 28, 2022 · 0 comments

Comments

@natevm
Copy link
Contributor

natevm commented Dec 28, 2022

At the moment, when we go to create a handle to a GPU entry point, we must provide the name of that entry point. For example,

GPRT_RAYGEN_PROGRAM(raygen, (RayGenData, record)) {}

GPRTRayGenOf<RayGenData> rayGen = gprtRayGenCreate<RayGenData>(gprt, module, "raygen");

However, if we go to update that entry point's name:

GPRT_RAYGEN_PROGRAM(newRaygenName, (RayGenData, record)) {}

And we forget to update the host side handle's string, then we get a confusing device loss crash at runtime without any description as to what the issue is.

It would be great if we could move this to a compile-time check somehow, or at the least give a better runtime error...

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

No branches or pull requests

1 participant