Repository navigation
Conversation
illsilin
requested review from
ThomasNing,
afagaj,
andriy-ca,
aosewski,
asleepzzz,
bartekxk,
carlushuang,
cgmillette,
coderfeli,
geyyer,
poyenc,
qianfengz,
shumway,
tenpercent and
vidyasagar-amd
as code owners
December 19, 2025 15:28
ThomasNing
approved these changes
Dec 19, 2025
amd-anclark
approved these changes
Dec 19, 2025
Collaborator
Author
|
This workaround is not going to work for AITER or other libs that don't use cmake, but it should work for stand-alone CK builds for the time being, until we get the root-cause fixed in the math.hpp header. |
illsilin
added a commit
that referenced
this pull request
Dec 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
This fix will allow us to avoid compilation errors like:
[2025-12-10T05:58:58.525Z] /var/jenkins/workspace/LLIBS_composable_kernel_aick-468/include/ck_tile/core/algorithm/coordinate_transform.hpp:844:73: error: reference to host function '' in host device function
[2025-12-10T05:58:58.525Z] 844 | up_lengths_scan_{container_reverse_exclusive_scan(up_lengths, multiplies{}, number<1>{})}
[2025-12-10T05:58:58.525Z] | ^
with the latest mainline and staging compilers.
This will look up the value of the LLVM_MAIN_REVISION macro from the compiler's config.h header and either enable or disable the "host device" attributes.
Checklist
Please put an
xinto the boxes that apply. You can also fill these out after creating the PR. If you're not sure, please don't hesitate to ask.clang-formaton all changed files