| 2702 | } |
| 2703 | |
| 2704 | bool |
| 2705 | FabArrayBase::isFusingCandidate () const noexcept // NOLINT(readability-convert-member-functions-to-static) |
| 2706 | { |
| 2707 | #ifdef AMREX_USE_GPU |
| 2708 | // This is fine tuned on MI100. |
| 2709 | // For V100 and A100, it is not very sensitive to the choice here. |
| 2710 | const int n = local_size(); |
| 2711 | if (n <= 1) { |
| 2712 | return false; |
| 2713 | } else if (n > 8) { |
| 2714 | return true; |
| 2715 | } else { |
| 2716 | for (int i = 0; i < n; ++i) { |
| 2717 | if (boxarray[indexArray[i]].numPts() <= Long(65*65*65)) { |
| 2718 | return true; |
| 2719 | } |
| 2720 | } |
| 2721 | return false; |
| 2722 | } |
| 2723 | #else |
| 2724 | return false; |
| 2725 | #endif |
| 2726 | } |
| 2727 | |
| 2728 | #ifdef AMREX_USE_GPU |
| 2729 |
no test coverage detected