Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename from nvprof focused connector to nvtx focused connector #175

Closed
wants to merge 24 commits into from

Conversation

vlkale
Copy link
Contributor

@vlkale vlkale commented Apr 14, 2023

Fix #176.

Fix naming of files and name of tool.

@vlkale vlkale requested a review from crtrott April 14, 2023 02:05
Copy link
Member

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your PR description claims the existing tool is being renamed, but the patch is a pure addition alongside the old facility. Also the build system probably needs some update to accommodate that renaming.

@vlkale
Copy link
Contributor Author

vlkale commented Apr 14, 2023 via email

@vlkale vlkale marked this pull request as draft April 14, 2023 13:34
@vlkale vlkale self-assigned this Apr 14, 2023
@vlkale vlkale added the Naming Fix naming of files, variable names, functions and other elements of code in repo label Apr 14, 2023
@vlkale vlkale linked an issue Apr 14, 2023 that may be closed by this pull request
@vlkale vlkale marked this pull request as ready for review April 14, 2023 19:22
handlers["nvprof-connector"] = NVProfConnector::get_event_set();
handlers["nvprof-focused-connector"] =
NVProfFocusedConnector::get_event_set();
handlers["nvprof-connector"] = NVProfConnector::get_event_set();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being fixed in #139

@vlkale
Copy link
Contributor Author

vlkale commented Jul 21, 2023

I made the fixes to this PR to get rid of the duplicated files, e.g., nvprof_focused_connector.cpp that are mistakenly sitting alongside the nvtx_* named files. I have also updated the CMakeLists.txt file to read the environment variable KokkosTools_ENABLE_NVTX, which I think would be needed for this PR's renaming, though (as mentioned in one of my comments), other related renaming changes for the CMakeLists.txt - specifically those involving nvprof_connector - are the action items of PR #139.

@dalg24
Copy link
Member

dalg24 commented Jul 21, 2023

> git rev-parse HEAD
fed7b89985be621b7e07cc27646842fb57a5eb0f

> tree profiling
profiling
[...]
├── nvprof-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvprof_connector.cpp
│   └── kp_nvprof_connector_domain.h
├── nvprof-focused-connector                  < This PR claims it is renaming files
│   ├── CMakeLists.txt.                       < but as you can see all of these are still
│   ├── Makefile                              < there.  Please fix it.
│   ├── kp_nvprof_focused_connector.cpp       <
│   └── kp_nvprof_focused_connector_domain.h  <
├── nvtx-focused-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvtx_focused_connector.cpp
│   └── kp_nvtx_focused_connector_domain.h
[...]
23 directories, 88 files

@vlkale
Copy link
Contributor Author

vlkale commented Jul 21, 2023

> git rev-parse HEAD
fed7b89985be621b7e07cc27646842fb57a5eb0f

> tree profiling
profiling
[...]
├── nvprof-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvprof_connector.cpp
│   └── kp_nvprof_connector_domain.h
├── nvprof-focused-connector                  < This PR claims it is renaming files
│   ├── CMakeLists.txt.                       < but as you can see all of these are still
│   ├── Makefile                              < there.  Please fix it.
│   ├── kp_nvprof_focused_connector.cpp       <
│   └── kp_nvprof_focused_connector_domain.h  <
├── nvtx-focused-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvtx_focused_connector.cpp
│   └── kp_nvtx_focused_connector_domain.h
[...]
23 directories, 88 files

@dalg24 OK, got it and thanks for that.

This ought to be fixed now with latest changes pushed to the repo - as seen in the below print. However, now there seems to be a merge conflict for profiling/nvprof-focused-connector/kp_nvprof_focused_connector.cpp and
profiling/nvprof-focused-connector/kp_nvprof_focused_connector_domain.h.

user@system:kokkos-tools-develop vlkale$ git rev-parse HEAD
fed7b89985be621b7e07cc27646842fb57a5eb0f
user@system :kokkos-tools-develop vlkale$ tree profiling/
profiling/
├── all
│   ├── CMakeLists.txt
│   ├── impl
│   │   ├── Kokkos_Profiling_C_Interface.h
│   │   ├── Kokkos_Profiling_DeviceInfo.hpp
│   │   └── Kokkos_Profiling_Interface.hpp
│   ├── kp_all.cpp
│   ├── kp_all.hpp
│   └── kp_core.hpp
[...]
├── nvprof-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvprof_connector.cpp
│   └── kp_nvprof_connector_domain.h
├── nvtx-focused-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvtx_focused_connector.cpp
│   └── kp_nvtx_focused_connector_domain.h
[...]
26 directories, 83 files
s1017105ca:kokkos-tools-develop vlkale$ 

@vlkale vlkale closed this Jul 31, 2023
@vlkale vlkale force-pushed the RenamingNVTXFocusedConnector branch 2 times, most recently from 209d399 to 9b93b9e Compare July 31, 2023 01:21
@vlkale vlkale reopened this Jul 31, 2023
@vlkale
Copy link
Contributor Author

vlkale commented Aug 5, 2023

FYI: I have resolved the merge conflicts a few days ago and this is building properly now against the CI tests. Please let me know if there is anything else. I think this is ready unless there are any other comments here. See the result of tree below.

@dalg24

user@system kto-dev-vk % git rev-parse HEAD                                         
50c1b1b0481c75b829f27631a21375c6bbf7eeac
user@system kto-dev-vk % tree profiling                                             
profiling
├── all
│   ├── CMakeLists.txt
│   ├── impl
│   │   ├── Kokkos_Profiling_C_Interface.h
│   │   ├── Kokkos_Profiling_DeviceInfo.hpp
│   │   └── Kokkos_Profiling_Interface.hpp
│   ├── kp_all.cpp
│   ├── kp_all.hpp
│   └── kp_core.hpp
├── caliper-connector
│   └── README.md
├── chrome-tracing
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_chrome_tracing.cpp
├── memory-events
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_memory_events.cpp
│   ├── kp_memory_events.hpp
│   └── kp_timer.hpp
├── memory-hwm
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_hwm.cpp
├── memory-hwm-mpi
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_hwm_mpi.cpp
├── memory-usage
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_memory_usage.cpp
├── nvprof-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvprof_connector.cpp
│   └── kp_nvprof_connector_domain.h
├── nvtx-focused-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_nvtx_focused_connector.cpp
│   └── kp_nvtx_focused_connector_domain.h
├── papi-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── README.md
│   ├── kp_papi_connector.cpp
│   └── kp_papi_connector_domain.h
├── perfetto-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── README.md
│   ├── kokkos.cfg
│   ├── libperfetto-connector.cpp
│   └── perfetto
│       ├── LICENSE
│       ├── perfetto.cc
│       └── perfetto.h
├── roctx-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_roctx_connector.cpp
├── simple-kernel-timer
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_json_writer.cpp
│   ├── kp_kernel_info.h
│   ├── kp_kernel_timer.cpp
│   ├── kp_kernel_timer_json.cpp
│   ├── kp_reader.cpp
│   ├── kp_shared.cpp
│   └── kp_shared.h
├── space-time-stack
│   ├── CMakeLists.txt
│   ├── Makefile
│   └── kp_space_time_stack.cpp
├── systemtap-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kokkos_stap_deep_copy.stp
│   ├── kokkos_stap_example1.stp
│   ├── kokkos_stap_mon.stp
│   ├── kp_systemtap_connector.cpp
│   └── probes.d
├── timemory-connector
│   └── README.md
├── variorum-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── README.md
│   └── variorum-connector.cpp
├── vtune-connector
│   ├── CMakeLists.txt
│   ├── Makefile
│   ├── kp_vtune_connector.cpp
│   └── kp_vtune_connector_domain.h
└── vtune-focused-connector
    ├── CMakeLists.txt
    ├── Makefile
    ├── kp_vtune_focused_connector.cpp
    └── kp_vtune_focused_connector_domain.h

22 directories, 81 files

@crtrott crtrott closed this Aug 24, 2023
@vlkale vlkale deleted the RenamingNVTXFocusedConnector branch August 25, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Naming Fix naming of files, variable names, functions and other elements of code in repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Nvprof focused connector naming to nvtx, consistent with nvtx connector
3 participants