Skip to content

build failed about atomic #4417

@tensor-tang

Description

@tensor-tang

hi
just encounter an issue with latest commit 6f9a9a9

paddle/framework/operator.cc: In member function ‘void paddle::framework::OperatorBase::GenerateTemporaryNames()’:
paddle/framework/operator.cc:194:10: error: ‘atomic’ in namespace ‘std’ does not name a type
static std::atomic<size_t> gUniqId(0UL);

CentOS Linux release 7.3.1611 (Core)

gcc version

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright (C) 2015 Free Software Foundation, Inc.

It works after added #include <atomic>

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