Skip to content

Siwasaki/pr/fix phi inliner#13

Open
shintaro-iwasaki wants to merge 8 commits intomasterfrom
siwasaki/pr/fix_phi_inliner
Open

Siwasaki/pr/fix phi inliner#13
shintaro-iwasaki wants to merge 8 commits intomasterfrom
siwasaki/pr/fix_phi_inliner

Conversation

@shintaro-iwasaki
Copy link
Owner

No description provided.

jansel and others added 4 commits September 23, 2022 21:44
I suspect this was the cause of the "new compiles even on a warm cache"
behavior I was seeing, though haven't 100% confirmed it.

Python `set()` iteration order is nondeterministic when you create a new
process. So the same args could produce different `instance_descriptor`s
and have false cache misses.
Based on the discussion in triton-lang#700, this PR enables downloading pybind11 in
`setup.py` without `git submodule` instead of copy-pasting pybind11
code. The downloaded pybind11 will be in `~/.triton/pybind` (like
`llvm`).
…ng#708)

This allows compiling in a subprocess. I'm not seeing a ton of speedup from this, but figure it is a good change anyway.
@shintaro-iwasaki shintaro-iwasaki force-pushed the siwasaki/pr/fix_phi_inliner branch 2 times, most recently from 94bebfa to 7ee6264 Compare September 30, 2022 00:52
albanD and others added 4 commits September 29, 2022 18:06
…iton-lang#726)

Without this patch, a debug version of python complains that:
```
Fatal Python error: Python memory allocator called without holding the GIL
Python runtime state: initialized
```
For example, phi-nodes can refer to an instruction after its appearance.
Let's create all the new instructions and then replace their operands.
replace_uses_of_with() does not replace basic blocks of phi nodes.
Let's replace them explicitly.
@shintaro-iwasaki shintaro-iwasaki force-pushed the siwasaki/pr/fix_phi_inliner branch from 7ee6264 to 603c882 Compare September 30, 2022 01:29
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.

4 participants