| 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 | } |
no test coverage detected