This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Repository navigation
Conversation
mdlogic
force-pushed
the
export-D97387341
branch
2 times, most recently
from
March 23, 2026 23:48
bc786cb to
6b8a554
Compare
mdlogic
added a commit
to mdlogic/kineto
that referenced
this pull request
Mar 24, 2026
…#1323) Summary: Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 18:37
6b8a554 to
ca51151
Compare
mdlogic
added a commit
to mdlogic/kineto
that referenced
this pull request
Mar 24, 2026
…#1323) Summary: Pull Request resolved: pytorch#1323 Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 18:40
ca51151 to
878a348
Compare
mdlogic
added a commit
to mdlogic/kineto
that referenced
this pull request
Mar 24, 2026
…#1323) Summary: Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Reviewed By: hjli-creator Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 20:09
878a348 to
bc240ed
Compare
mdlogic
added a commit
to mdlogic/kineto
that referenced
this pull request
Mar 24, 2026
…#1323) Summary: Pull Request resolved: pytorch#1323 Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Reviewed By: hjli-creator Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 20:12
bc240ed to
e98aae8
Compare
mdlogic
added a commit
to mdlogic/kineto
that referenced
this pull request
Mar 24, 2026
…#1323) Summary: Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Reviewed By: hjli-creator Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 20:45
e98aae8 to
ae1db5b
Compare
…#1323) Summary: Pull Request resolved: pytorch#1323 Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Reviewed By: hjli-creator Differential Revision: D97387341
mdlogic
force-pushed
the
export-D97387341
branch
from
March 24, 2026 20:48
ae1db5b to
4d41a08
Compare
|
This pull request has been merged in 628e1d0. |
mdlogic
added a commit
to mdlogic/pytorch
that referenced
this pull request
Mar 25, 2026
Bump Kineto submodule to include pytorch/kineto#1323 (add host_name to OSS Kineto trace metadata via gethostname()). This enables mapping per-rank traces back to specific hosts for topology-aware performance analysis in distributed training.
mdlogic
added a commit
to mdlogic/pytorch
that referenced
this pull request
Mar 26, 2026
Bump Kineto submodule to latest main (0c8ede0) to include pytorch/kineto#1323 (add host_name to OSS Kineto trace metadata via gethostname()). This enables mapping per-rank traces back to specific hosts for topology-aware performance analysis in distributed training.
pytorch-bot Bot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Mar 27, 2026
Bump Kineto submodule to latest main (0c8ede0) to include pytorch/kineto#1323 (add host_name to OSS Kineto trace metadata via gethostname()). This enables mapping per-rank traces back to specific hosts for topology-aware performance analysis in distributed training.
mdlogic
added a commit
to pytorch/pytorch
that referenced
this pull request
Mar 30, 2026
Bump Kineto submodule to latest main (0c8ede0) to include pytorch/kineto#1323 (add host_name to OSS Kineto trace metadata via gethostname()). This enables mapping per-rank traces back to specific hosts for topology-aware performance analysis in distributed training.
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Apr 2, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: #178918 Approved by: https://github.com/divyanshk
scotts
added a commit
to scotts/pytorch
that referenced
this pull request
Apr 3, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude.
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Apr 3, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: #179244 Approved by: https://github.com/malfet
weifengpy
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Apr 7, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: #178918 Approved by: https://github.com/divyanshk
weifengpy
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Apr 7, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: #179244 Approved by: https://github.com/malfet
nklshy-aws
pushed a commit
to nklshy-aws/pytorch
that referenced
this pull request
Apr 7, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: pytorch#178918 Approved by: https://github.com/divyanshk
nklshy-aws
pushed a commit
to nklshy-aws/pytorch
that referenced
this pull request
Apr 7, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: pytorch#179244 Approved by: https://github.com/malfet
pytorch-bot Bot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Apr 10, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: #178918 Approved by: https://github.com/divyanshk
bobrenjc93
pushed a commit
to bobrenjc93/pytorch
that referenced
this pull request
Apr 10, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: pytorch#179244 Approved by: https://github.com/malfet
gplutop7
pushed a commit
to gplutop7/pytorch
that referenced
this pull request
Jul 15, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: pytorch#178918 Approved by: https://github.com/divyanshk
gplutop7
pushed a commit
to gplutop7/pytorch
that referenced
this pull request
Jul 15, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: pytorch#179244 Approved by: https://github.com/malfet
ani300
pushed a commit
to IBM/kineto-spyre
that referenced
this pull request
Jul 28, 2026
Summary: Pull Request resolved: pytorch/kineto#1323 Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis. This change adds a `gethostname()` call to `getEnvMetadata()` in `EnvMetadata.h`, writing the result under the key `"host_name"`. Downstream trace consumers can now identify which host produced each rank's trace. Why `gethostname()` and not an environment variable: - `$HOSTNAME` is a shell-level variable, not guaranteed to be set in non-interactive or containerized environments - Job-scheduler env vars (e.g. `PT_PROFILER_*`) are set at the job level, so a hypothetical `PT_PROFILER_HOSTNAME` would be identical across all ranks in a job - `gethostname()` reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identity `addEnvVarsToMetadata()` in `output_json.cpp` gives precedence to caller-supplied metadata, so trace loggers that already provide `host_name` through other means will have their value preserved. `gethostname()` is POSIX (Linux/macOS/Android via `unistd.h`) and available on Windows via `winsock2.h`. Reviewed By: hjli-creator Differential Revision: D97387341 fbshipit-source-id: 422191fe42030e102d74cc5fafd16da1b068cf48 Signed-off-by: Antoni Viros i Martin <[email protected]>
aws-kingrj
pushed a commit
to amazon-contributing/upstream-to-pytorch
that referenced
this pull request
Jul 29, 2026
Includes the following commits: * Expose occupany limiting factors (pytorch/kineto#1330) * remove the rocprofiler early exit hack (pytorch/kineto#1329) * Remove duplicate test ignore (pytorch/kineto#1328) * Ensure that async doesn't loop while sync is active (pytorch/kineto#1327) * Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) * Revert D97166802 (pytorch/kineto#1326) * Fix Lingering INT32 Overflow (pytorch/kineto#1324) * Re-enabled some hardcoded tests (pytorch/kineto#1321) * Expose occupany limiting factors (pytorch/kineto#1322) Authored with Claude. Pull Request resolved: pytorch#178918 Approved by: https://github.com/divyanshk
aws-kingrj
pushed a commit
to amazon-contributing/upstream-to-pytorch
that referenced
this pull request
Jul 29, 2026
Includes the following commits: - Add host_name to OSS Kineto trace metadata via gethostname() (pytorch/kineto#1323) 628e1d0 - Revert D97166802 (pytorch/kineto#1326) 9d7373b - Fix Lingering INT32 Overflow (pytorch/kineto#1324) 3a61657 - Re-enabled some hardcoded tests (pytorch/kineto#1321) 50a0085 - Expose occupany limiting factors (pytorch/kineto#1322) e19dd92 Authored with Claude. Pull Request resolved: pytorch#179244 Approved by: https://github.com/malfet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Kineto's OSS Chrome trace logger captures profiler metadata (job name, version, attempt index) from environment variables but does not record the hostname of the machine producing the trace. In distributed training, this makes it impossible to map per-rank traces back to specific hosts for topology-aware performance analysis.
This change adds a
gethostname()call togetEnvMetadata()inEnvMetadata.h, writing the result under the key"host_name". Downstream trace consumers can now identify which host produced each rank's trace.Why
gethostname()and not an environment variable:$HOSTNAMEis a shell-level variable, not guaranteed to be set in non-interactive or containerized environmentsPT_PROFILER_*) are set at the job level, so a hypotheticalPT_PROFILER_HOSTNAMEwould be identical across all ranks in a jobgethostname()reads the kernel hostname, which container runtimes typically set per-container, giving true per-rank host identityaddEnvVarsToMetadata()inoutput_json.cppgives precedence to caller-supplied metadata, so trace loggers that already providehost_namethrough other means will have their value preserved.gethostname()is POSIX (Linux/macOS/Android viaunistd.h) and available on Windows viawinsock2.h.Reviewed By: hjli-creator
Differential Revision: D97387341