| 77 | } |
| 78 | |
| 79 | void |
| 80 | IArrayBox::resize (const Box& b, int N, Arena* ar) |
| 81 | { |
| 82 | BaseFab<int>::resize(b,N,ar); |
| 83 | // For debugging purposes |
| 84 | if ( do_initval ) { |
| 85 | #if defined(AMREX_USE_GPU) |
| 86 | if (Gpu::inLaunchRegion() && arena()->isDeviceAccessible()) { |
| 87 | setVal<RunOn::Device>(std::numeric_limits<int>::max()); |
| 88 | Gpu::streamSynchronize(); |
| 89 | } else |
| 90 | #endif |
| 91 | { |
| 92 | setVal<RunOn::Host>(std::numeric_limits<int>::max()); |
| 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | std::unique_ptr<IntDescriptor> |
| 98 | IArrayBox::getDataDescriptor () |
no test coverage detected