You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 16ef0d4
Browse filesBrowse the repository at this point in the historyBrowse files
Reject the TBLIS backend on Windows and fix the 1.12 constructor warning
The Windows build of tblis_jll aborts the process with "posix_memalign:
Invalid argument" out of tblis::MemoryPool::acquire as soon as a contraction
reaches the GEMM kernels. The abort does not tear the process down cleanly
either, so CI hung until the 6h runner timeout instead of failing. Reject the
backend up front on Windows with an ArgumentError that points at StridedBLAS,
skip the TBLIS test file there, and document the restriction.
Rename the tblis_tensor helper to tblis_tensor_ref: tblis_tensor is a struct
in TBLIS, so the method was extending its constructor through an implicit
`using` binding, which Julia 1.12 warns about on load.
Also cap the CI jobs at 90 minutes so that a native library that aborts or
deadlocks fails the job instead of wedging a runner for six hours.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/src/man/backends.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,9 @@ TBLIS.set_num_threads(8)
88
88
TBLIS requires all tensors in a single operation to share one element type out of `Float32`, `Float64`, `ComplexF32` and `ComplexF64`.
89
89
Arguments that do not satisfy this, as well as non-strided arrays, are rejected with an `ArgumentError` instead of being passed on to another backend, so that a contraction which cannot actually reach TBLIS is not silently run somewhere else.
90
90
91
+
The backend is not supported on Windows.
92
+
`tblis_jll` does ship a Windows build, but it aborts the process from inside the library as soon as a contraction reaches its GEMM kernels, so calls there are rejected with an `ArgumentError` instead.
93
+
91
94
Note that contracting in place trades throughput for memory rather than being a free win.
92
95
With BLAS, TBLIS and `Strided.jl` all given the same number of threads, this backend is roughly on par with `StridedBLAS` for permuted real contractions and slower for other shapes, while allocating no permuted temporaries at all.
0 commit comments