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

Replace gpu_asm_extra_flags string option by individual flags #19836

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Nov 26, 2024

Replace gpu_asm_extra_flags string option by individual flags

gpu_asm_extra_flags allowed the user to pass arbitrary command line flags
to ptxas. This was working well enough when calling ptxas was our only
PTX compilation option.

With library compilation and support for parallel compilation a wrong flag can easily mess up the PTX compilation with weird error. It also doesn't support flags for nvlink which might be needed when using parallel compilation.

So I'm replacing the list of opaque flags by individual boolean options for the two main use cases (debug compile and preserving line info). The new compilation providers will take those booleans options and generate the right flags or API calls.

As a temporary shim the function PtxOptsFromDebugOptions will still generate the command line flags for users of the legacy PTX compilation functions.

@copybara-service copybara-service bot force-pushed the test_700259233 branch 4 times, most recently from b5e4b21 to 4fbcee0 Compare December 2, 2024 06:51
`gpu_asm_extra_flags` allowed the user to pass arbitrary command line flags
to `ptxas`. This was working well enough when calling ptxas was our only
PTX compilation option.

With library compilation and support for parallel compilation a wrong flag can easily mess up the PTX compilation with weird error. It also doesn't support flags for `nvlink` which might be needed when using parallel compilation.

So I'm replacing the list of opaque flags by individual boolean options for the two main use cases (debug compile and preserving line info). The new compilation providers will take those booleans options and generate the right flags or API calls.

As a temporary shim the function `PtxOptsFromDebugOptions` will still generate the command line flags for users of the legacy PTX compilation functions.

PiperOrigin-RevId: 701850432
@copybara-service copybara-service bot merged commit ff5f61c into main Dec 2, 2024
@copybara-service copybara-service bot deleted the test_700259233 branch December 2, 2024 07:28
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.

1 participant