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

Fixed NVVM generation for void functions and out parameters. #1147

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

MoFtZ
Copy link
Collaborator

@MoFtZ MoFtZ commented Jan 11, 2024

We pre-generate NVVM instructions at compile-time, to be used for generating PTX at runtime.

For LibDevice functions like SinCos that return void, and have out parameters, we were generating the wrong NVVM instructions.

We were incorrectly trying to store the result of a void function into a return variable. And for out parameters, treating it like a normal variable, rather than a pointer to a variable.

@MoFtZ MoFtZ force-pushed the bug/libdevice-nvvm branch from 6139ef5 to 043fb1e Compare January 11, 2024 22:43
@MoFtZ MoFtZ changed the title Fixed NVVM generation for void functions void or with out parameters. Fixed NVVM generation for void functions or with out parameters. Jan 12, 2024
@MoFtZ MoFtZ changed the title Fixed NVVM generation for void functions or with out parameters. Fixed NVVM generation for void functions and out parameters. Jan 12, 2024
@m4rs-mt m4rs-mt added the bug label Jan 12, 2024
@m4rs-mt m4rs-mt added this to the v2.0 milestone Jan 12, 2024
@m4rs-mt m4rs-mt merged commit ee0671d into m4rs-mt:master Jan 12, 2024
44 checks passed
@MoFtZ MoFtZ deleted the bug/libdevice-nvvm branch January 12, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants