From b6b8626e9c43ce22ea147dc2051ae16469a85aeb Mon Sep 17 00:00:00 2001 From: peizhilin Date: Tue, 27 Nov 2018 19:36:56 +0800 Subject: [PATCH] fix the build issue on manylinux1 --- paddle/legacy/cuda/src/hl_cuda_device.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/legacy/cuda/src/hl_cuda_device.cc b/paddle/legacy/cuda/src/hl_cuda_device.cc index a6e27a37f..66bb06374 100644 --- a/paddle/legacy/cuda/src/hl_cuda_device.cc +++ b/paddle/legacy/cuda/src/hl_cuda_device.cc @@ -137,10 +137,10 @@ inline pid_t gettid() { #define __NR_gettid 224 #endif pid_t tid = syscall(__NR_gettid); -#endif -#else // _WIN32 +#else // _WIN32 pid_t tid = _getpid(); -#endif // _WIN32 +#endif // _WIN32 +#endif CHECK_NE((int)tid, -1); return tid; } -- GitLab