misc(ci): add debug profile
This commit is contained in:
parent
e37d131b8e
commit
68f5466c86
|
@ -55,7 +55,7 @@ jobs:
|
|||
load: true
|
||||
platforms: 'linux/amd64'
|
||||
build-args: |
|
||||
BUILD_TYPE=debug
|
||||
BUILD_TYPE=dev
|
||||
SCCACHE_REGION: us-east-1
|
||||
SCCACHE_S3_USE_SSL: false
|
||||
SCCACHE_S3_KEY_PREFIX: trtllm
|
||||
|
|
|
@ -35,9 +35,6 @@ minijinja = { version = "2.2.0", features = ["json"] }
|
|||
minijinja-contrib = { version = "2.0.2", features = ["pycompat"] }
|
||||
pyo3 = { version = "0.22.2", features = ["auto-initialize"] }
|
||||
|
||||
[profile.debug]
|
||||
opt-level = 0
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
|
||||
|
|
|
@ -96,7 +96,11 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
|||
)
|
||||
FetchContent_MakeAvailable(Catch2)
|
||||
|
||||
cmake_path(GET TRTLLM_NVRTC_WRAPPER_LIBRARY_PATH PARENT_PATH TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH)
|
||||
message(STATUS "Adding linking path: ${TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH}")
|
||||
|
||||
add_executable(tgi_trtllm_backend_tests tests/test_hardware.cpp tests/test_backend.cpp)
|
||||
target_link_directories(tgi_trtllm_backend_tests PRIVATE "${TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH}")
|
||||
target_include_directories(tgi_trtllm_backend_tests PUBLIC "${trtllm_SOURCE_DIR}/cpp/include")
|
||||
target_include_directories(tgi_trtllm_backend_tests PUBLIC "csrc/")
|
||||
target_link_libraries(tgi_trtllm_backend_tests PRIVATE ${TRTLLM_LIBS} CUDA::cudart CUDA::nvml)
|
||||
|
@ -104,9 +108,9 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
|||
target_link_libraries(tgi_trtllm_backend_tests PRIVATE tensorrt_llm nvinfer_plugin_tensorrt_llm tensorrt_llm_nvrtc_wrapper)
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=undefined PUBLIC -fsanitize=address)
|
||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined")
|
||||
# target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=undefined PUBLIC -fsanitize=address)
|
||||
endif ()
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
|
||||
|
|
Loading…
Reference in New Issue