Skip to content

[FRONTEND] Emit warnings via native Python C API rather than py::exec() calls#2703

Merged
Jokeren merged 1 commit into
triton-lang:mainfrom
XuehaiPan:eliminate-exec
Nov 27, 2023
Merged

[FRONTEND] Emit warnings via native Python C API rather than py::exec() calls#2703
Jokeren merged 1 commit into
triton-lang:mainfrom
XuehaiPan:eliminate-exec

Conversation

@XuehaiPan
Copy link
Copy Markdown
Contributor

This PR replaces the py::exec() calls with native Python C API. This is much safer and eliminates the side effects on the Python side (e.g., assignment for function warnings.showwarning).

Ref:

@XuehaiPan XuehaiPan requested a review from ptillet as a code owner November 27, 2023 10:20
@Jokeren Jokeren merged commit 7e0dd45 into triton-lang:main Nov 27, 2023
feihugis pushed a commit to feihugis/triton that referenced this pull request Feb 13, 2024
…c()` calls (triton-lang#2703)

This PR replaces the `py::exec()` calls with native Python C API. This
is much safer and eliminates the side effects on the Python side (e.g.,
assignment for function `warnings.showwarning`).

Ref:

- triton-lang#2155
pingzhuu pushed a commit to siliconflow/triton that referenced this pull request Apr 2, 2024
…c()` calls (triton-lang#2703)

This PR replaces the `py::exec()` calls with native Python C API. This
is much safer and eliminates the side effects on the Python side (e.g.,
assignment for function `warnings.showwarning`).

Ref:

- triton-lang#2155
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants