-
Notifications
You must be signed in to change notification settings - Fork 17
[SWDEV-535603]Fix: Add rocjpeg_api to supported ROCPROFSYS_ROCM_DOMAINS list #240
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
Conversation
Thanks @habajpai-amd, |
Thank you for the valid feedback David -- I agree that we should avoid allowing unsupported domains in order to maintain fail-fast behavior. The change would look like this inside config_settings(): _add_domain("hip_api"); // Conditionally add rocjpeg_api only if SDK version >= 7.0 This way: |
In that case, we don't need to do anything special. In the lines just below, we'll add the domains reported by the SDK.
|
Thanks for clarifying David -- makes sense now. Since the SDK version detection is already implicit via callback_tracing_info, and the domains are auto-populated from the SDK response, we don’t need to explicitly add rocjpeg_api. The fail-fast behavior remains intact, and the domain registration remains version-aware. I'll drop this change accordingly. |
Closing this PR as the change is no longer required. Domain registration for rocjpeg_api is handled automatically based on the SDK version through callback_tracing_info. For SDK >= 0.7.0, rocjpeg_api is already included via the SDK queries. Fail-fast behavior remains intact for unsupported domains. Thanks for the review and helpful clarification! |
This change prevents runtime errors caused by the environment variable
ROCPROFSYS_ROCM_DOMAINS including 'rocjpeg_api' when the domain is not
listed in the allowed choices.
Tested with local ROCJPEG samples and rocprof-sys-sample execution.