Skip to content
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

fix CPU global bucket state #546

Merged
merged 3 commits into from
Mar 13, 2024
Merged

fix CPU global bucket state #546

merged 3 commits into from
Mar 13, 2024

Conversation

juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented Mar 12, 2024

Purpose

After #536, we begin to see that output for the global bucket on CPU is incorrect (e.g. build here). This wasn't caught before because in our comparison of cpu/gpu means, we weren't taking the absolute value.

To-do

  • add absolute value to comparison
  • revert changes to find which caused invalid CPU results
  • apply fix to avoid overwriting CPU results
    • this involves wrapping the result of interpolation in Array(...) so that memory is allocated for it. A fix for this will be included in ClimaCore v0.13.2 (see ClimaCore PR)

@juliasloan25 juliasloan25 force-pushed the js/cpu-gpu-bug branch 5 times, most recently from cd58afe to 92f9372 Compare March 12, 2024 19:45
@juliasloan25 juliasloan25 changed the title debug CPU global bucket state fix CPU global bucket state Mar 12, 2024
@juliasloan25 juliasloan25 force-pushed the js/cpu-gpu-bug branch 3 times, most recently from 22646f9 to 792c95d Compare March 12, 2024 20:00
@juliasloan25 juliasloan25 requested a review from Sbozzolo March 12, 2024 20:01
@Sbozzolo Sbozzolo force-pushed the js/cpu-gpu-bug branch 4 times, most recently from 25cd863 to 9bdc567 Compare March 12, 2024 22:44
Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

LGTM

@Sbozzolo Sbozzolo enabled auto-merge March 12, 2024 23:33
@Sbozzolo Sbozzolo merged commit ce32357 into main Mar 13, 2024
8 checks passed
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.

2 participants