Skip to content

[CK Tools] Auto-enable unbuffered output for Python commands - #4265

Merged
illsilin merged 3 commits into
developfrom
import/develop/ROCm_composable_kernel/pr-3694
Feb 10, 2026
Merged

[CK Tools] Auto-enable unbuffered output for Python commands#4265
illsilin merged 3 commits into
developfrom
import/develop/ROCm_composable_kernel/pr-3694

Conversation

@assistant-librarian

Copy link
Copy Markdown
Contributor

ck-docker exec and ck-exec now automatically detect Python commands and set PYTHONUNBUFFERED=1 to enable live output streaming. This eliminates the need to manually set the environment variable when running Python scripts that print progress updates.

The detection matches python, python3, or any .py file argument.

This helps in watching live terminal output when a python script is running inside the container.


🔁 Imported from ROCm/composable_kernel#3694
🧑‍💻 Originally authored by @AviralGoelAMD

AviralGoelAMD and others added 3 commits January 30, 2026 14:27
ck-docker exec and ck-exec now automatically detect Python commands
and set PYTHONUNBUFFERED=1 to enable live output streaming. This
eliminates the need to manually set the environment variable when
running Python scripts that print progress updates.

The detection matches python, python3, or any .py file argument.

Co-Authored-By: Claude (claude-opus-4.5) <noreply@anthropic.com>
@illsilin
illsilin enabled auto-merge (squash) February 9, 2026 22:52
@illsilin
illsilin merged commit 0f9b3b0 into develop Feb 10, 2026
20 checks passed
@illsilin
illsilin deleted the import/develop/ROCm_composable_kernel/pr-3694 branch February 10, 2026 02:59
assistant-librarian Bot pushed a commit to ROCm/composable_kernel that referenced this pull request Feb 10, 2026
[CK Tools] Auto-enable unbuffered output for Python commands
 (#4265)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ck-docker exec and ck-exec now automatically detect Python commands and
set PYTHONUNBUFFERED=1 to enable live output streaming. This eliminates
the need to manually set the environment variable when running Python
scripts that print progress updates.

The detection matches python, python3, or any .py file argument.

This helps in watching live terminal output when a python script is
running inside the container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants