Skip to content

Commit

Permalink
[CustomDevice] enable memory stat for custom device allocator (#61030)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylarTiaNII authored Jan 23, 2024
1 parent 865b905 commit 500e21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/memory/allocation/allocator_facade.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ class AllocatorFacadePrivate {
const platform::Place& place = pair.first;
if (platform::is_cpu_place(place) ||
platform::is_cuda_pinned_place(place) ||
platform::is_gpu_place(place)) {
platform::is_gpu_place(place) || platform::is_custom_place(place)) {
pair.second = std::make_shared<StatAllocator>(pair.second);
}
}
Expand Down

0 comments on commit 500e21b

Please sign in to comment.