Fix the kineto daemon build condition (#89174)

If we're not building the lite interpreter we shouldn't be disabling Kineto. This eliminates a step from https://github.com/facebookincubator/dynolog/blob/main/docs/pytorch_profiler.md
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89174
Approved by: https://github.com/kimishpatel, https://github.com/malfet
This commit is contained in:
Dmytro Dzhulgakov 2022-11-18 02:42:45 +00:00 committed by PyTorch MergeBot
parent b652fbc57a
commit 9fd00f194a

View File

@ -795,7 +795,7 @@ if(USE_SOURCE_DEBUG_ON_MOBILE)
string(APPEND CMAKE_CXX_FLAGS " -DSYMBOLICATE_MOBILE_DEBUG_HANDLE")
endif()
if(USE_LITE_INTERPRETER_PROFILER)
if(BUILD_LITE_INTERPRETER AND USE_LITE_INTERPRETER_PROFILER)
string(APPEND CMAKE_CXX_FLAGS " -DEDGE_PROFILER_USE_KINETO")
endif()