Commit 94c7963
Fix GPU reduction in adaptive mode: use is_device_ptr
The adaptive mode ||b||_2 computation was using map(present:) clause
which doesn't work correctly with NVHPC. Replace with the established
pattern using omp_get_mapped_ptr() + is_device_ptr() that works
throughout the rest of the codebase.
This was causing the GPU CI test "Rest frame projection converges"
to fail with extremely high ratios (775x-969x instead of <5x) because
the GPU reduction was reading incorrect data.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent bdf62f1 commit 94c7963
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1889 | 1889 | | |
1890 | 1890 | | |
1891 | 1891 | | |
1892 | | - | |
1893 | | - | |
1894 | 1892 | | |
1895 | 1893 | | |
1896 | 1894 | | |
1897 | 1895 | | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
1898 | 1900 | | |
1899 | 1901 | | |
1900 | | - | |
1901 | | - | |
| 1902 | + | |
1902 | 1903 | | |
1903 | 1904 | | |
1904 | 1905 | | |
1905 | | - | |
| 1906 | + | |
1906 | 1907 | | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | 1910 | | |
1910 | 1911 | | |
1911 | | - | |
1912 | | - | |
| 1912 | + | |
1913 | 1913 | | |
1914 | 1914 | | |
1915 | 1915 | | |
1916 | 1916 | | |
1917 | | - | |
| 1917 | + | |
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
| |||
0 commit comments