MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / InitDevices

Method InitDevices

paddle/phi/common/memory_utils.h:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309#endif
310
311 void InitDevices() {
312 CheckMemoryMethod();
313 PADDLE_ENFORCE_NE(memory_method_->init_devices,
314 nullptr,
315 common::errors::Unavailable(
316 "init_devices method in memory_method_ is not "
317 "initialized yet. You need init it first."));
318 memory_method_->init_devices();
319 }
320
321 void EmplaceDeviceContexts(
322 std::map<Place, std::shared_future<std::unique_ptr<DeviceContext>>>*

Callers 2

InitDevicesFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64