mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
Fix execute_process: check results using EQUAL (#5481)
This commit is contained in:
parent
49af791f66
commit
ef43b95aa1
@ -385,7 +385,7 @@ if(BUILD_PYT)
|
||||
print(os.path.dirname(torch.__file__),end='');"
|
||||
RESULT_VARIABLE _PYTHON_SUCCESS
|
||||
OUTPUT_VARIABLE TORCH_DIR)
|
||||
if(NOT _PYTHON_SUCCESS MATCHES 0)
|
||||
if(NOT _PYTHON_SUCCESS EQUAL 0)
|
||||
message(FATAL_ERROR "Torch config Error.")
|
||||
endif()
|
||||
list(APPEND CMAKE_PREFIX_PATH ${TORCH_DIR})
|
||||
|
||||
@ -29,7 +29,7 @@ execute_process(
|
||||
COMMAND ${Python3_EXECUTABLE} setup_library.py develop --user
|
||||
RESULT_VARIABLE _CUTLASS_LIBRARY_SUCCESS)
|
||||
|
||||
if(NOT _CUTLASS_LIBRARY_SUCCESS MATCHES 0)
|
||||
if(NOT _CUTLASS_LIBRARY_SUCCESS EQUAL 0)
|
||||
message(
|
||||
FATAL_ERROR
|
||||
"Failed to set up the CUTLASS library due to ${_CUTLASS_LIBRARY_SUCCESS}."
|
||||
@ -53,7 +53,7 @@ execute_process(
|
||||
OUTPUT_VARIABLE _KERNEL_GEN_OUTPUT
|
||||
RESULT_VARIABLE _KERNEL_GEN_SUCCESS)
|
||||
|
||||
if(NOT _KERNEL_GEN_SUCCESS MATCHES 0)
|
||||
if(NOT _KERNEL_GEN_SUCCESS EQUAL 0)
|
||||
message(
|
||||
FATAL_ERROR
|
||||
"Failed to generate internal CUTLASS kernel instantiations due to ${_KERNEL_GEN_SUCCESS}."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user