@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 4e9cf8c1dd
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 14:45 UTC

[Bugfix] fix gettid method is not define (#16084)

Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>

rongfu.leng committed Apr 9, 2025 at 10:12 UTC 4e9cf8c1dd4ac0845239c820a0afa45ac390985e
1 file changed +5
csrc/cpu/utils.cpp
+5
@@ -4,6 +4,11 @@
4 #include <string>
5 #include <sched.h>
6 #endif
7 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
8 + #include <unistd.h>
9 + #include <sys/syscall.h>
10 + #define gettid() syscall(SYS_gettid)
11 +#endif
12
13 #include "cpu_types.hpp"
14