diff --git a/CMakeLists.txt b/CMakeLists.txt index cda1ffc795d1..1bf904cb09fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,6 +164,13 @@ endif() # get_torch_gpu_compiler_flags(VLLM_GPU_FLAGS ${VLLM_GPU_LANG}) +# +# Add line info for debugging. +# +if(VLLM_GPU_LANG STREQUAL "CUDA") + list(APPEND VLLM_GPU_FLAGS "-lineinfo") +endif() + # # Set nvcc parallelism. #