Skip to content

Conversation

yhmtsai
Copy link
Member

@yhmtsai yhmtsai commented May 20, 2025

This PR adds the highest precision test to ensure we get the same thing among backends.
In general, we tend to avoid type promotion implicitly. We handle it either from accessor or static_cast to the highest_precision<Type...>.
However, decltype(T1{}, T2{}) on device type may not give the same result or is not compiled successfully.

Additionally, it fixes the unintialized_array<bfloat> pointer shift's ambiguous operation before oneapi 2024.2 and assignment issue before cuda 12.2 on CC > 80.

@yhmtsai yhmtsai added 1:ST:WIP This PR is a work in progress. Not ready for review. 1:ST:run-full-test labels May 20, 2025
@ginkgo-bot ginkgo-bot added reg:build This is related to the build system. reg:testing This is related to testing. mod:core This is related to the core module. labels May 20, 2025
@yhmtsai yhmtsai force-pushed the highest_precision branch from d2d92ff to 240e13a Compare May 21, 2025 08:32
@yhmtsai yhmtsai changed the title add highest precision test (draft for testing now) Ensure highest precision on device are the same as the host's. May 28, 2025
@yhmtsai yhmtsai changed the title Ensure highest precision on device are the same as the host's. Ensure highest precision on device are the same as the host's May 28, 2025
@yhmtsai yhmtsai self-assigned this May 28, 2025
@yhmtsai yhmtsai force-pushed the highest_precision branch from 563fb7d to 323f6bd Compare May 28, 2025 11:02
@yhmtsai yhmtsai requested a review from a team May 28, 2025 11:02
@yhmtsai yhmtsai added 1:ST:ready-for-review This PR is ready for review and removed 1:ST:WIP This PR is a work in progress. Not ready for review. labels May 28, 2025
@yhmtsai yhmtsai added this to the Ginkgo 1.10.0 milestone May 28, 2025
@yhmtsai yhmtsai marked this pull request as ready for review May 28, 2025 11:02
@MarcelKoch MarcelKoch self-requested a review May 28, 2025 13:18
@yhmtsai yhmtsai added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels May 28, 2025
@yhmtsai yhmtsai force-pushed the highest_precision branch from 323f6bd to 0e0656e Compare May 28, 2025 16:49
@yhmtsai yhmtsai merged commit e05cd67 into develop May 28, 2025
15 of 17 checks passed
@yhmtsai yhmtsai deleted the highest_precision branch May 28, 2025 23:22
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:ready-to-merge This PR is ready to merge. 1:ST:run-full-test mod:core This is related to the core module. reg:build This is related to the build system. reg:testing This is related to testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants