Skip to content

Bugfix/multiple ptxas options values #678

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

Merged

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Jun 4, 2025

Description

closes gh-668

This PR fixes the issue by changing how sequence values for ptxas_options are handled. Multiple values should be passed to NVRTC as a sequence of --ptx-options=val for each val in the sequence.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@oleksandr-pavlyk oleksandr-pavlyk requested a review from leofang June 4, 2025 15:37
@oleksandr-pavlyk oleksandr-pavlyk self-assigned this Jun 4, 2025
@oleksandr-pavlyk oleksandr-pavlyk added bug Something isn't working P0 High priority - Must do! cuda.core Everything related to the cuda.core module labels Jun 4, 2025
Copy link
Contributor

copy-pr-bot bot commented Jun 4, 2025

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@oleksandr-pavlyk
Copy link
Contributor Author

/ok to test

The correct way to handle multiple options is to pass them
to NVRTC one at a time, e.g.,

```
--ptxas-options=val1 --ptxas-options=val2
```
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the bugfix/multiple-ptxas-options-values branch from 2d004bc to b06a6a5 Compare June 4, 2025 15:40
@oleksandr-pavlyk
Copy link
Contributor Author

/ok to test

@leofang leofang added this to the cuda.core beta 4 milestone Jun 4, 2025
@leofang leofang enabled auto-merge (squash) June 4, 2025 15:59

This comment has been minimized.

@leofang leofang merged commit a8285b0 into NVIDIA:main Jun 4, 2025
53 checks passed
Copy link

github-actions bot commented Jun 4, 2025

Doc Preview CI
Preview removed because the pull request was closed or merged.

@oleksandr-pavlyk oleksandr-pavlyk deleted the bugfix/multiple-ptxas-options-values branch June 4, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda.core Everything related to the cuda.core module P0 High priority - Must do!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Second argument to ptxas_options fails to parse
2 participants