Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions laghos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ int main(int argc, char *argv[])
if (Mpi::Root()) { backend.Print(); }
backend.SetGPUAwareMPI(gpu_aware_mpi);

#ifdef LAGHOS_USE_DEVICE_UMPIRE
// Warm up the device pool on the configured GPU to avoid first-use latency.
auto allocator = rm.getAllocator(allocator_name);
void *tmp_device_ptr = allocator.allocate(umpire_dev_block_size);
allocator.deallocate(tmp_device_ptr);
#endif

// Prepare the missing kernels.
if (myid == 0) { KernelReporter::Enable(); }
using TENS = QuadratureInterpolator::TensorEvalKernels;
Expand Down
Loading