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

Function constexpr

Src/Base/AMReX_PODVector.H:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 else if (IsPolymorphicArenaAllocator<Allocator<T>>::value)
67#else
68 else if constexpr (IsPolymorphicArenaAllocator<Allocator<T>>::value)
69#endif
70 {
71 if (allocator.arena()->isManaged() ||
72 allocator.arena()->isDevice())
73 {
74 amrex::ParallelFor(count, [=] AMREX_GPU_DEVICE (Size i) noexcept
75 {
76 data[i] = value;
77 });
78 Gpu::streamSynchronize();
79 return;
80 }
81 }
82#endif
83 std::uninitialized_fill_n(data, count, value);
84 }

Callers 1

AMReX_Array4.HFile · 0.85

Calls 5

streamSynchronizeFunction · 0.85
ParallelForFunction · 0.70
isManagedMethod · 0.45
arenaMethod · 0.45
isDeviceMethod · 0.45

Tested by

no test coverage detected