Merge pull request #10262 from JiayiFeng/fix_mac_compile_error

fix mac compile errors
intel-update-authors
Tao Luo 7 years ago committed by GitHub
commit 99714a7d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,10 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include <chrono> #include <gflags/gflags.h> // NOLINT
#include <gtest/gtest.h> // NOLINT
#include <gflags/gflags.h>
#include <gtest/gtest.h>
#include "paddle/utils/CustomStackTrace.h" #include "paddle/utils/CustomStackTrace.h"
#include "paddle/utils/Locks.h" #include "paddle/utils/Locks.h"
@ -39,12 +37,8 @@ void testNormalImpl(
threads.reserve(FLAGS_test_thread_num); threads.reserve(FLAGS_test_thread_num);
for (int32_t i = 0; i < FLAGS_test_thread_num; ++i) { for (int32_t i = 0; i < FLAGS_test_thread_num; ++i) {
threads.emplace_back(new std::thread([&tracer, threads.emplace_back(
&countDown, new std::thread([&tracer, &startBarrier, &doneBarrier, &callback] {
&layerSize,
&startBarrier,
&doneBarrier,
&callback] {
callback(tracer, countDown, layerSize, startBarrier, doneBarrier); callback(tracer, countDown, layerSize, startBarrier, doneBarrier);
})); }));
} }

Loading…
Cancel
Save