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

Method CheckMemoryMethod

paddle/phi/common/memory_utils.h:343–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 }
342
343 void CheckMemoryMethod() {
344 PADDLE_ENFORCE_NE(
345 memory_method_.get(),
346 nullptr,
347 common::errors::Unavailable(
348 "memory_method_ in MemoryUtils is not "
349 "initialized yet. You need init it first. If you compiled with "
350 "Fluid. You can call InitMemoryMethod() for initialization."));
351 }
352
353#if (defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)) && \
354 (defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL))

Callers 1

TESTFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 1

TESTFunction · 0.64