From 1df325ce781d97dafcf4ed0de5f517dcd27c348d Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Thu, 17 Aug 2023 16:18:59 -0600 Subject: [PATCH] Delete unused file and remove unrelated changes to README --- README.md | 8 -- .../nvtx-connector/kp_nvtx_connector_domain.h | 78 ------------------- 2 files changed, 86 deletions(-) delete mode 100644 profiling/nvtx-connector/kp_nvtx_connector_domain.h diff --git a/README.md b/README.md index 82807bd76..73f1a902a 100644 --- a/README.md +++ b/README.md @@ -73,14 +73,6 @@ The following provides an overview of the tools available in the set of Kokkos T Provides Kokkos Kernel Names to NVTX, so that analysis can be performed on a per kernel base. -+ [**NVProfFocusedConnector:**](https://github.com/kokkos/kokkos-tools/wiki/NVTXFocusedConnector) - - Like NVTXConnector but turns profiling off outside of kernels. Should be used in conjunction with the KernelFilter tool. (Note: this will soon be renamed to NVTXFocusedConnector.) - -+ [**ROCTXConnector:**](https://github.com/kokkos/kokkos-tools/wiki/ROCTXConnector) - - Provides Kokkos Kernel Names to RocTX, so that analysis can be performed on a per kernel base. - + [**Timemory:**](https://github.com/kokkos/kokkos-tools/wiki/Timemory) Modular connector for accumulating timing, memory usage, hardware counters, and other various metrics. diff --git a/profiling/nvtx-connector/kp_nvtx_connector_domain.h b/profiling/nvtx-connector/kp_nvtx_connector_domain.h deleted file mode 100644 index d975f45e2..000000000 --- a/profiling/nvtx-connector/kp_nvtx_connector_domain.h +++ /dev/null @@ -1,78 +0,0 @@ -//@HEADER -// ************************************************************************ -// -// Kokkos v. 4.0 -// Copyright (2022) National Technology & Engineering -// Solutions of Sandia, LLC (NTESS). -// -// Under the terms of Contract DE-NA0003525 with NTESS, -// the U.S. Government retains certain rights in this software. -// -// Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. -// See https://kokkos.org/LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//@HEADER - -#ifndef KOKKOSP_NVTX_CONNECTOR_H -#define KOKKOSP_NVTX_CONNECTOR_H - -#include -#include -#include - -#include "nvToolsExt.h" - -enum KernelExecutionType { - PARALLEL_FOR = 0, - PARALLEL_REDUCE = 1, - PARALLEL_SCAN = 2 -}; - -class KernelNVTXConnectorInfo { - public: - KernelNVTXConnectorInfo(std::string kName, KernelExecutionType kernelType) { - domainNameHandle = kName; - char* domainName = (char*)malloc(sizeof(char*) * (32 + kName.size())); - - if (kernelType == PARALLEL_FOR) { - sprintf(domainName, "ParallelFor.%s", kName.c_str()); - } else if (kernelType == PARALLEL_REDUCE) { - sprintf(domainName, "ParallelReduce.%s", kName.c_str()); - } else if (kernelType == PARALLEL_SCAN) { - sprintf(domainName, "ParallelScan.%s", kName.c_str()); - } else { - sprintf(domainName, "Kernel.%s", kName.c_str()); - } - - domain = nvtxDomainCreateA(domainName); - currentRange = 0; - } - - nvtxRangeId_t startRange() { - nvtxEventAttributes_t eventAttrib = {0}; - eventAttrib.version = NVTX_VERSION; - eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE; - eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII; - eventAttrib.message.ascii = "Kernel"; - currentRange = nvtxDomainRangeStartEx(domain, &eventAttrib); - return currentRange; - } - - nvtxRangeId_t getCurrentRange() { return currentRange; } - - void endRange() { nvtxDomainRangeEnd(domain, currentRange); } - - nvtxDomainHandle_t getDomain() { return domain; } - - std::string getDomainNameHandle() { return domainNameHandle; } - - ~KernelNVTXConnectorInfo() { nvtxDomainDestroy(domain); } - - private: - std::string domainNameHandle; - nvtxRangeId_t currentRange; - nvtxDomainHandle_t domain; -}; - -#endif