Skip to content

Commit b6b8626

Browse files
committed
fix the build issue on manylinux1
1 parent 3c77ce3 commit b6b8626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/legacy/cuda/src/hl_cuda_device.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ inline pid_t gettid() {
137137
#define __NR_gettid 224
138138
#endif
139139
pid_t tid = syscall(__NR_gettid);
140-
#endif
141-
#else // _WIN32
140+
#else // _WIN32
142141
pid_t tid = _getpid();
143-
#endif // _WIN32
142+
#endif // _WIN32
143+
#endif
144144
CHECK_NE((int)tid, -1);
145145
return tid;
146146
}

0 commit comments

Comments
 (0)