Skip to content

Change amdmlss option to be activated via compile option#5008

Draft
Zhaeong wants to merge 2 commits into
ROCm:developfrom
Zhaeong:amd/dev/ozhang/addmlsscompile
Draft

Change amdmlss option to be activated via compile option#5008
Zhaeong wants to merge 2 commits into
ROCm:developfrom
Zhaeong:amd/dev/ozhang/addmlsscompile

Conversation

@Zhaeong

@Zhaeong Zhaeong commented Jun 24, 2026

Copy link
Copy Markdown
Member

Make AMDMLSS op selection controllable through MIGraphX's compile_options instead of only the MIGRAPHX_MLSS_USE_SPECIFIC_OPS environment variable. Under static-CRT linking, the EP's runtime env-var writes never reached MIGraphX's getenv.
Also used the std::string mlss_use_specific_ops field in the fuse_mlss pass (replacing the test-only enable_conv bool with a use_specific_ops string)


// Comma-separated list of ops to force onto AMDMLSS (e.g. "conv"). Empty lets
// MIGraphX decide. Mirrors the MIGRAPHX_MLSS_USE_SPECIFIC_OPS env var.
std::string mlss_use_specific_ops = "";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be added here. compile_options are options for all targets and this option is specific to the GPU backend. In #4990, I added backend options which you can use. It hasn't been integrated yet with the GPU.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok sounds good, I can wait till that PR is merged and use backend options instead

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.

2 participants