MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / isFusingCandidate

Method isFusingCandidate

Src/Base/AMReX_FabArrayBase.cpp:2704–2726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2702}
2703
2704bool
2705FabArrayBase::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

Callers 15

CrseInitMethod · 0.80
CrseAddMethod · 0.80
RefluxMethod · 0.80
OverwriteFluxMethod · 0.80
prepareSolverMethod · 0.80
loadVectorsMethod · 0.80
loadVectorsMethod · 0.80
loadVectorsMethod · 0.80
prepareSolverMethod · 0.80
loadVectorsMethod · 0.80
defineMethod · 0.80
applyOversetMethod · 0.80

Calls 2

LongFunction · 0.85
numPtsMethod · 0.45

Tested by

no test coverage detected