Update nvtx. (#10227)
This commit is contained in:
parent
837d44a345
commit
5e64276a9b
@ -289,7 +289,7 @@ macro(xgboost_target_link_libraries target)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_NVTX)
|
if(USE_NVTX)
|
||||||
target_link_libraries(${target} PRIVATE CUDA::nvToolsExt)
|
target_link_libraries(${target} PRIVATE CUDA::nvtx3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
|
|||||||
@ -8,12 +8,10 @@
|
|||||||
#include "../collective/communicator-inl.h"
|
#include "../collective/communicator-inl.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_NVTX)
|
#if defined(XGBOOST_USE_NVTX)
|
||||||
#include <nvToolsExt.h>
|
#include <nvtx3/nvToolsExt.h>
|
||||||
#endif // defined(XGBOOST_USE_NVTX)
|
#endif // defined(XGBOOST_USE_NVTX)
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost::common {
|
||||||
namespace common {
|
|
||||||
|
|
||||||
void Monitor::Start(std::string const &name) {
|
void Monitor::Start(std::string const &name) {
|
||||||
if (ConsoleLogger::ShouldLog(ConsoleLogger::LV::kDebug)) {
|
if (ConsoleLogger::ShouldLog(ConsoleLogger::LV::kDebug)) {
|
||||||
auto &stats = statistics_map_[name];
|
auto &stats = statistics_map_[name];
|
||||||
@ -66,6 +64,4 @@ void Monitor::Print() const {
|
|||||||
LOG(CONSOLE) << "======== Monitor (" << rank << "): " << label_ << " ========";
|
LOG(CONSOLE) << "======== Monitor (" << rank << "): " << label_ << " ========";
|
||||||
this->PrintStatistics(stat_map);
|
this->PrintStatistics(stat_map);
|
||||||
}
|
}
|
||||||
|
} // namespace xgboost::common
|
||||||
} // namespace common
|
|
||||||
} // namespace xgboost
|
|
||||||
|
|||||||
@ -59,7 +59,6 @@ endif()
|
|||||||
target_sources(testxgboost PRIVATE ${TEST_SOURCES} ${xgboost_SOURCE_DIR}/plugin/example/custom_obj.cc)
|
target_sources(testxgboost PRIVATE ${TEST_SOURCES} ${xgboost_SOURCE_DIR}/plugin/example/custom_obj.cc)
|
||||||
|
|
||||||
if(USE_CUDA AND PLUGIN_RMM)
|
if(USE_CUDA AND PLUGIN_RMM)
|
||||||
find_package(CUDA)
|
|
||||||
target_include_directories(testxgboost PRIVATE ${CUDA_INCLUDE_DIRS})
|
target_include_directories(testxgboost PRIVATE ${CUDA_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user