Skip to content

Print warning when kernel argument has multiple buffer_location attributes #109

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

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Print warning when kernel argument has multiple buffer_location attributes #109

merged 1 commit into from
Apr 22, 2022

Conversation

pcolberg
Copy link
Contributor

@pcolberg pcolberg commented Apr 22, 2022

The auto-discovery string parsing of per kernel argument buffer_location
intended to concatenate multiple attributes into a space-separated string,
but in fact only retains the value of the last buffer_location attribute
since read_string_counters() does not append but assign the string value.

Since multiple buffer_location attributes are not supported, print a
warning message, and select the last buffer_location attribute such that
the functional behaviour of buffer_location parsing remains unchanged.

This is a prerequisite of #108 and #103, since the current implementation
incorrectly checks argument index j instead of attribute index k which
results in a build failure when factoring out kernel argument parsing into
a separate function.

@pcolberg pcolberg added the bug Something isn't working label Apr 22, 2022
@pcolberg pcolberg added this to the 2022.3 milestone Apr 22, 2022
@pcolberg pcolberg self-assigned this Apr 22, 2022
…butes

The auto-discovery string parsing of per kernel argument buffer_location
intended to concatenate multiple attributes into a space-separated string,
but in fact only retains the value of the last buffer_location attribute
since read_string_counters() does not append but assign the string value.

Since multiple buffer_location attributes are not supported, print a
warning message, and select the last buffer_location attribute such that
the functional behaviour of buffer_location parsing remains unchanged.

Signed-off-by: Peter Colberg <[email protected]>
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

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

Thanks Peter and Sherry! LGTM!

Copy link
Contributor

@sherry-yuan sherry-yuan left a comment

Choose a reason for hiding this comment

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

Thanks Peter :)

@pcolberg pcolberg merged commit 3b9155c into intel:main Apr 22, 2022
@pcolberg pcolberg deleted the buffer_location branch April 22, 2022 19:58
pcolberg added a commit that referenced this pull request Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants