8 Commits

Author SHA1 Message Date
skarupke bc0e4ac014 Fix use-after-free in FA3 deterministic mode. The pytorch caching allocator actually saves us here, but if you turn it off, then compute-sanitizer will detect this. (#2063) 2025-12-12 06:47:31 -08:00
Guilherme Leobas 49fb7752e7 Fix bug in boxed_mha_bwd 2025-11-17 19:18:15 +00:00
Guilherme Leobas b555ac7137 Fix flash_api_stable.cpp build 2025-11-17 19:18:15 +00:00
Guilherme Leobas 6fe1c8c728 update flash_api_stable.cpp 2025-11-17 19:17:52 +00:00
Kevin Wang 3effce828c Fix FA3 segfault with custom CUDA streams in ABI stable build (#1957)
The ABI stable implementation incorrectly used getCurrentStream().id()
which returns a StreamId (int64_t) instead of the actual cudaStream_t
pointer. Casting an integer ID to a stream pointer caused segmentation
faults when using custom CUDA streams.

Fixed by using the proper AOTI C API function aoti_torch_get_current_cuda_stream()
which returns the actual CUDA stream pointer.
2025-10-23 22:17:39 -07:00
Johnny add175637c C++11 fix warnings (#1904)
* errors are with C++11 narrowing warnings (treated as errors in strict builds) when initializing at::cuda::CUDAGuard with a non-constant char cast to c10::DeviceIndex (signed char).

* errors are with C++11 narrowing warnings (treated as errors in strict builds) when initializing at::cuda::CUDAGuard with a non-constant char cast to c10::DeviceIndex (signed char).

* errors are with C++11 narrowing warnings (treated as errors in strict builds) when initializing at::cuda::CUDAGuard with a non-constant char cast to c10::DeviceIndex (signed char).

* errors are with C++11 narrowing warnings (treated as errors in strict builds) when initializing at::cuda::CUDAGuard with a non-constant char cast to c10::DeviceIndex (signed char).

* Update flash_api_stable.cpp

* upstream cutlass v4.2.1 csrc
2025-09-25 01:22:47 -07:00
jayhshah 5c1627a7a1 Improve causal backward determinism perf with SPT schedule (#1893)
* add spt scheduler for causal bwd determinism

* add new torch check for det hdim 256 to stable api
2025-09-17 14:58:45 -07:00
mikaylagawarecki b3846b059b ABI stable fa3 (#1791)
* squashed

* fixes

* fixes

* Fix narrow

* Add TORCH_STABLE_ONLY flag

* new_empty + zero_ --> new_zeros

* revert flash_api.cpp and add flash_api_stable.cpp

* update setup.py

* Only pass TORCH_STABLE_ONLY for stable build

* Address Jane's comments

* > to >=
2025-09-12 12:28:35 -07:00