-
Notifications
You must be signed in to change notification settings - Fork 86
Docs - Add documentation for --no-docker parameter requirements (#715) #783
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
9c7ca44
6902328
38b11d9
7e28d3e
839df0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -375,7 +375,7 @@ sb run [--config-file] | |||||
| | `--host-list` `-l` | `None` | Comma separated host list. | | ||||||
| | `--host-password` | `None` | Host password or key passphrase if needed. | | ||||||
| | `--host-username` | `None` | Host username if needed. | | ||||||
| | `--no-docker` | `False` | Run on host directly without Docker. | | ||||||
| | `--no-docker` | `False` | Run on host directly without Docker. When using remote nodes, SuperBench (`sb` binary and dependencies) must be pre-installed on each target host; otherwise `command not found` will occur. See [Run SuperBench - Using --no-docker on Remote Nodes](getting-started/run-superbench.md#using---no-docker-on-remote-nodes) for details. | | ||||||
|
||||||
| | `--no-docker` | `False` | Run on host directly without Docker. When using remote nodes, SuperBench (`sb` binary and dependencies) must be pre-installed on each target host; otherwise `command not found` will occur. See [Run SuperBench - Using --no-docker on Remote Nodes](getting-started/run-superbench.md#using---no-docker-on-remote-nodes) for details. | | |
| | `--no-docker` | `False` | Run on host directly without Docker. See [Run SuperBench - Using --no-docker on Remote Nodes](getting-started/run-superbench.md#using---no-docker-on-remote-nodes) for details on using this option with remote nodes. | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,3 +47,18 @@ You can create a privileged container with `superbench/superbench` image, skip ` | |
| `sb run --no-docker -l localhost -c resnet.yaml`. | ||
|
|
||
| ::: | ||
|
|
||
| ## Using `--no-docker` on Remote Nodes | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [SHOULD-FIX] (Maintainability) New section ignores the file's paragraph + bash-fence + admonition styleIssue: Every other prose unit in this file follows "1 short paragraph → The new section uses none — it is one dense 4-item bold-led numbered list, zero runnable code blocks, no admonitions. Items 1 ( Impact: Future editors will see one section that looks foreign to the rest of the page, increasing drift over time. Recommendation: Restructure as paragraphs + 1–2 ### Using `--no-docker` on Remote Nodes
When you run `sb run --no-docker` against remote hosts (via `--host-file` or
`--host-list`), Ansible SSHes into each node and invokes the `sb` binary
directly, so SuperBench must already be installed on every target host.
\`\`\`bash
sb run --no-docker -f remote.ini -c resnet.yaml \\
--config-override superbench.env.SB_MICRO_PATH=/opt/superbench
\`\`\`
:::caution
If `sb` is not on `PATH` on a remote host, the run fails with
`sb: command not found` (exit code 127).
:::
:::note
Set `SB_MICRO_PATH` (env var or `superbench.env.SB_MICRO_PATH` via
`--config-override`) to the on-host install path of the micro-benchmark
binaries.
:::Agreement: 2/3 reviewers.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [SHOULD-FIX] (Maintainability) New section should be H3 under
|
||
|
|
||
| When running `sb run` with `--no-docker` on **remote nodes** (via `--host-file` or `--host-list`), the following requirements apply: | ||
|
|
||
| 1. **SuperBench must be pre-installed on each remote node.** The `sb` CLI binary and its dependencies must be available in the PATH on every target host. Running without Docker means Ansible will SSH into each node and execute `sb exec` directly; if `sb` is not installed, you will see `command not found` (exit code 127). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NON-BLOCKING] (Maintainability) "execute
|
||
|
|
||
| 2. **Deployment options:** | ||
| - **Option A:** Extract the contents of the `superbench/superbench` Docker image onto each node (e.g., copy binaries, Python environment, and micro-benchmark executables to a consistent path), then ensure `sb` is in PATH. | ||
| - **Option B:** Install SuperBench from source or pip on each node, and build/install the required micro-benchmark binaries (see `third_party/` and build instructions). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [SHOULD-FIX] (Correctness)
|
||
| - **Option C:** Use `sb deploy` first to pull the image, then manually extract the container filesystem to the host if you need to run without containers. | ||
|
guoshzhao marked this conversation as resolved.
Outdated
|
||
|
|
||
| 3. **Environment variables:** Set `superbench.env.SB_MICRO_PATH` (and other required env vars) to match the installation path on each node when using `--no-docker`. | ||
|
guoshzhao marked this conversation as resolved.
Outdated
|
||
|
|
||
| 4. **Use case:** `--no-docker` is intended for environments where Docker-in-Docker or nested containers are not supported (e.g., certain Kubernetes setups, HPC clusters with restricted container runtimes). For standard deployments, prefer `sb deploy` + `sb run` without `--no-docker`. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NON-BLOCKING] (Maintainability) No back-link from
|
||
Uh oh!
There was an error while loading. Please reload this page.