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

[Kineto] Improve Config Options for Input Shapes, Memory, Stack, Flops, and Modules - Part 1 #97380

Closed
wants to merge 1 commit into from

Conversation

aaronenyeshi
Copy link
Member

Summary:
Improve On-Demand Kineto config to enable toggling of profiler options via the config file. New config strings:

  • PROFILE_REPORT_INPUT_SHAPES
  • PROFILE_PROFILE_MEMORY
  • PROFILE_WITH_STACK
  • PROFILE_WITH_FLOPS
  • PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:

  • CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
  • PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 22, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/97380

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 Failures

As of commit 56640f4:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

@aaronenyeshi aaronenyeshi added topic: not user facing topic category release notes: profiler release notes category labels Mar 22, 2023
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 22, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 9a690296fc8fa84ed6b3d26a8b359a2ffb74aa0a
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 22, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: ad36caee22b8531f29a9e824454d6e882377861a
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 22, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 4f0c265e213b8eeeeee9c71d8a6de166eeb3978c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 22, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: a1b0f5288a528779b850458e40f4e821a6dacf05
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 22, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: aedc9adf0f206d79778fc4f10460173a30b4dad4
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 22, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 45eabde00c39658839fb801a345f8d1db60bdd24
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 22, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: e1b4677714fd6326704c7bbc72329fbb2985ee5f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 22, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: c9936774c9f4a4b50fc7a19b2df02758e3d892e0
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 23, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 047345e030f8def7927d30b9c17f630c4f036789
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 23, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 9f11f3355cea13cfd29634ddd3491e611ba8487d
aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 23, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: c6abd5b2fb21f70e40701bdb64f85ca9a523a9be
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 23, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 5cdd571cf30b17c0f53e980fe9b098062e3df801
aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 23, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: bfa3fb31061e107b8055014a8403d7b2c887a91c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

Copy link
Contributor

@davidberard98 davidberard98 left a comment

Choose a reason for hiding this comment

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

mirror internal stamp 👍

aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 24, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: d11ed416762a42f75418fb3b9231ae7af5503883
aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 24, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: ecba20164a5b32f0d1bf3e7628529865d8361c5c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

aaronenyeshi added a commit to aaronenyeshi/kineto that referenced this pull request Mar 24, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: pytorch#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 5e8919b05100391fd3595c40078dac01b59f0a40
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: b82395a37d1cd1974a0813b1fcdf68fa447696ae
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D44275220

facebook-github-bot pushed a commit to pytorch/kineto that referenced this pull request Mar 24, 2023
…dules - Part 1 (#97380)

Summary:
X-link: pytorch/pytorch#97380

Pull Request resolved: #744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Reviewed By: leitian

Differential Revision: D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 04b9316184b8cd0185d8897b41351565ef52d360
aaronenyeshi added a commit to aaronenyeshi/pytorch that referenced this pull request Mar 24, 2023
…s, and Modules - Part 1 (pytorch#97380)

Summary:
Pull Request resolved: pytorch#97380

X-link: pytorch/kineto#744

Improve On-Demand Kineto config to enable toggling of [profiler options](https://pytorch.org/docs/stable/profiler.html) via the config file. New config strings:
- PROFILE_REPORT_INPUT_SHAPES
- PROFILE_PROFILE_MEMORY
- PROFILE_WITH_STACK
- PROFILE_WITH_FLOPS
- PROFILE_WITH_MODULES

Also marked for deprecation, but still valid, old config options:
- CLIENT_INTERFACE_ENABLE_OP_INPUTS_COLLECTION
- PYTHON_STACK_TRACE

Test Plan: CI Tests (internal testing)

Differential Revision: https://internalfb.com/D44275220

Pulled By: aaronenyeshi

fbshipit-source-id: 5ca2ab73a55b2379a22a3a23bc7fadb36767d530
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 24, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@qqaatw
Copy link
Collaborator

qqaatw commented Mar 28, 2023

Hi @aaronenyeshi some changes this PR brought caused a compilation error on my system:

pytorch/torch/csrc/profiler/kineto_client_interface.cpp:30:34: error: only virtual member functions can be marked 'override'
      bool with_modules = false) override {
                                 ^~~~~~~~~
PyTorch version: (viable/strict)
Is debug build: True
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.6.1 (arm64)
GCC version: Could not collect
Clang version: 13.1.6 (clang-1316.0.21.2.5)
CMake version: version 3.23.2
Libc version: N/A

Python version: 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:00:33)  [Clang 13.0.1 ] (64-bit runtime)
Python platform: macOS-12.6.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: False

Versions of relevant libraries:
[pip3] mypy==0.960
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.1
[pip3] torch==2.1.0a0+git38443eb
[pip3] torchvision==0.15.1
[conda] numpy                     1.23.1                   pypi_0    pypi
[conda] torch                     2.1.0a0+git38443eb           dev_0    <develop>
[conda] torchvision               0.15.1                   pypi_0    pypi

cc @davidberard98 and @ezyang - Should we add a workflow job that tests on newer Clang compilers (I guess this is the cause)? previous incidents that broke the builds on my system: #96878 (comment) #92755 (comment)

@ezyang
Copy link
Contributor

ezyang commented Mar 28, 2023

upgrading clang seems reasonable; I'm surprised we're not getting this error already though. Can you send the (hopefully easy) patch up?

@ezyang
Copy link
Contributor

ezyang commented Mar 28, 2023

cc @malfet

@malfet
Copy link
Contributor

malfet commented Mar 28, 2023

@ezyang, We have recent enough clang(and even gcc) in the system, but it does not protect one from a missing submodule update (which introduced this function)

Just to test it still works: #97782

@malfet
Copy link
Contributor

malfet commented Mar 28, 2023

Hi @aaronenyeshi some changes this PR brought caused a compilation error on my system:

pytorch/torch/csrc/profiler/kineto_client_interface.cpp:30:34: error: only virtual member functions can be marked 'override'
      bool with_modules = false) override {
                                 ^~~~~~~~~

@qqaatw hmm, did you forget to run git submodule update? As prepare is indeed virtual function
See https://github.com/pytorch/kineto/blob/e64df4dc31285a6129a74d26d67365cedf7aa6d1/libkineto/include/ClientInterface.h#L17

@qqaatw
Copy link
Collaborator

qqaatw commented Mar 28, 2023

@malfet Yeah I forgot, my fault. However, in the previous cases mentioned those seem to be not submodules. One in torch/csrc/profiler/python/combined_traceback.cpp, and the other one in c10/util/StringUtil.cpp and torch/csrc/init_flatbuffer_module.cpp

@malfet
Copy link
Contributor

malfet commented Mar 28, 2023

@qqaatw links plz. In the meantime, testing how many compiler will raise only virtual members can be override error in #97782

@qqaatw
Copy link
Collaborator

qqaatw commented Mar 28, 2023

@malfet here are the links:
#96878 (comment) #92755 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: profiler release notes category topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants