Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Jul 25, 2024

This commit avoids the following warnings in post-commit testing:

  • SYCLSpecConstMaterializer had a loop purely for debug printing. If NDEBUG is defined, the loop variable is unused, which causes a warning. To address this, the use of LLVM_DEBUG is moved to outside the full debug printing body.
  • In program_manager, debug printing now checks whether debug printing is enabled using if constexpr. This now means that getFormatStr is unused, which in turn causes a warning. This commit marks it as potentially unused to avoid this warning.

…anager

This commit avoids the following warnings in post-commit testing:
 * SYCLSpecConstMaterializer had a loop purely for debug printing. If
 NDEBUG is defined, the loop variable is unused, which causes a warning.
 To address this, we mask the debug printing with ifndef NDEBUG.
 * In program_manager, debug printing now checks whether debug printing
 is enabled using if constexpr. This now means that getFormatStr is
 unused, which in turn causes a warning. This commit marks it as
 potentially unused to avoid this warning.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM.

@steffenlarsen
Copy link
Contributor Author

steffenlarsen commented Jul 25, 2024

AMD failure appears to be an infrastructural issue. @intel/dpcpp-kernel-fusion-reviewers - Please have a look ASAP.

@jchlanda
Copy link
Contributor

@steffenlarsen steffenlarsen merged commit 47ea32a into intel:sycl Jul 25, 2024
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.

5 participants