-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shortfin] Fix issues with free threaded Python builds. (#226)
* Fixes a method signature issue that manifested on 3.13 generally (not FT related). * Bumps nanobind to a recent HEAD commit to pick up free threaded support. * Adds nanobind option to enable free threading if building for a CPython with it enabled. * Adds a README stanza advising on how to acquire a free threaded CPython. * Makes fastapi tests skip if deps not met (not yet available / hard to install). * Adds an LSAN exclusion for something unrelated that has snuck in. * Sets FT CMAKE_BUILD_TYPE=Debug in the CI. Note that on the large NUMA system I was testing on, the CPU test which creates an executor on each NUMA node for all processes exceeded the default file handle ulimit, requiring it to be increased. I assume that the FT CPython internally uses more synchronization handles and it just happened to go over budget. This resulted in fixing iree-org/iree#18609, which was causing an assert to be hit in this specific RESOURCE_EXHAUSTED scenario.
- Loading branch information
1 parent
a9fecda
commit fe5af6b
Showing
6 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ leak:google/_upb | |
leak:import_find_and_load | ||
leak:pyo3::pyclass::create_type_object | ||
leak:ufunc | ||
leak:pydantic_core |
This file contains 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
This file contains 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
This file contains 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