Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conditionally log a DeviceGroupedConvBwdWeightTwoStage_Xdl_CShuffle warning #1860

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

JonathanLichtnerAMD
Copy link
Contributor

@JonathanLichtnerAMD JonathanLichtnerAMD commented Feb 4, 2025

The code was emitting a warning if MIOpen did not create a workspace
prior to invoking the IsSupportedArgument method, but the condition for
MIOpen to create a workspace was not met, and so this condition was not
really an error but more of a log message.

Proposed changes

This commit addresses this issue by using the CK_LOGGING facility to only generate the
log message if the CK_LOGGING environment variable is set.

@illsilin
Copy link
Collaborator

illsilin commented Feb 7, 2025

I think instead of ripping out that warning altogether, you should just use the CK_LOGGING environment variable to enable/disable it.

@samjwu samjwu requested a review from a team as a code owner February 7, 2025 22:12
@JonathanLichtnerAMD JonathanLichtnerAMD changed the title Remove a noisy warning from DeviceGroupedConvBwdWeightTwoStage_Xdl_CS… Conditionally log a DeviceGroupedConvBwdWeightTwoStage_Xdl_CShuffle warning Feb 10, 2025
@JonathanLichtnerAMD
Copy link
Contributor Author

I think instead of ripping out that warning altogether, you should just use the CK_LOGGING environment variable to enable/disable it.

Thank you, @illsilin. I've made and tested the change. Please take a look. Thanks!

…arning

The code was emitting a warning if MIOpen did not create a workspace
prior to invoking the IsSupportedArgument method, but the
condition for MIOpen to create a workspace was not met, and so this
condition was not really an error but more of a log message.  This commit
addresses this issue by using the CK_LOGGING facility to only generate the
log message if the CK_LOGGING environment variable is set.
@JonathanLichtnerAMD JonathanLichtnerAMD merged commit 3c7fef7 into develop Feb 12, 2025
12 checks passed
@JonathanLichtnerAMD JonathanLichtnerAMD deleted the jlichtne/SWDEV-511312 branch February 12, 2025 00:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants