Skip to content

There is still a bug in memory allocation by the default arguments.  #6265

@qingqing01

Description

@qingqing01

After merging the PR #6159 , many unit tests of operator failed in my GPU server.

242:   File "/home/xx/github/myfork/Paddle/python/paddle/v2/fluid/tests/op_test.py", line 323, in check_output
242:     self.check_output_with_place(place, atol)
242:   File "/home/dangqingqing/github/myfork/Paddle/python/paddle/v2/fluid/tests/op_test.py", line 261, in check_output_with_place
242:     feed_map = self.feed_var(inputs, place)
242:   File "/home/xxx/github/myfork/Paddle/python/paddle/v2/fluid/tests/op_test.py", line 230, in feed_var
242:     tensor.set(self.inputs[var_name], place)
242: EnforceNotMet: enforce allocating < available failed, 11475179929 >= 11156224154
242:  at [/home/xxx/github/myfork/Paddle/paddle/platform/gpu_info.cc:90]
242: PaddlePaddle Call Stacks:
242: 0       0x7f025a8d16b6p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 486
242: 1       0x7f025b0360bbp paddle::platform::GpuMaxChunkSize() + 763
242: 2       0x7f025a95e228p paddle::memory::GetGPUBuddyAllocator(int) + 216
242: 3       0x7f025a95e3ccp void* paddle::memory::Alloc<paddle::platform::GPUPlace>(paddle::platform::GPUPlace, unsigned long) + 28
242: 4       0x7f025a8d832ap paddle::framework::Tensor::PlaceholderImpl<paddle::platform::GPUPlace>::PlaceholderImpl(paddle::platform::GPUPlace, unsigned long, std::type_index) + 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions