Skip to content

Conversation

@michel2323
Copy link
Member

@michel2323 michel2323 commented Nov 26, 2025

On oneAPI.jl, the cor(A; dims=2) test failed for Float16 (one some GPUs), caused by numerical instability when computing the variance of rows with only 2 elements drawn from [0, 1). This leads to subnormal variances, which are flushed to zero on the CPU (causing NaN or -1 results) but preserved on the oneAPI GPU (causing valid results), resulting in a mismatch.

Now I'm not a stats person, and I don't want to fix anything deeper in Intel oneAPI, but it seems to be fixed with an extended range. I saw that there was already such a special case for Real. Unfortunately, that still doesn't fix the ComplexF32 case.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

Your PR no longer requires formatting changes. Thank you for your contribution!

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