Skip to content

Conversation

djramic
Copy link
Contributor

@djramic djramic commented Oct 10, 2025

Motivation

Resolve: https://ontrack-internal.amd.com/browse/SWDEV-559813

Technical Details

This change modifies the lit configuration to select only the first detected GPU agent when initializing config.arch.
Previously, all agents were concatenated into a single string (e.g. "gfx1201,gfx1100"), which caused issues on systems with multiple different GPUs since our tools expect a single target.

Copy link
Contributor

@justinrosner justinrosner left a comment

Choose a reason for hiding this comment

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

Have you run this on a machine that has two different GPU archs?

config.features, config.arch_support_mfma, config.arch_support_wmma = get_arch_features(x)
config.substitutions.append(('%features', config.features))
if not config.arch:
if agents:
Copy link
Contributor

@justinrosner justinrosner Oct 10, 2025

Choose a reason for hiding this comment

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

I know here is probably not the place to do this, but is there somewhere where we can emit a warning to the user that we are only using one of the available archs?

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