pytorch
e7b7e8dc - [SDPA] Remove unused rng_engine_inputs (#93024)

Commit
1 year ago
[SDPA] Remove unused rng_engine_inputs (#93024) The unused variable in `fmha_api.cpp` [here](https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/transformers/cuda/flash_attn/fmha_api.cpp#L313) was causing build failures (internally) due to to the `-Wunused-variable` flag being used. For example: ``` [2023-01-24T20:32:00.241-08:00] Stderr: aten/src/ATen/native/transformers/cuda/flash_attn/fmha_api.cpp:313:25: error: unused variable 'rng_engine_inputs' [-Werror,-Wunused-variable] [CONTEXT] [2023-01-24T20:32:00.241-08:00] at::PhiloxCudaState rng_engine_inputs; [CONTEXT] [2023-01-24T20:32:00.241-08:00] ^ [2023-01-24T21:09:33.507-08:00] Stderr: aten/src/ATen/native/transformers/cuda/flash_attn/fmha_api.cpp:313:25: error: unused variable 'rng_engine_inputs' [-Werror,-Wunused-variable] [CONTEXT] [2023-01-24T21:09:33.507-08:00] at::PhiloxCudaState rng_engine_inputs; [CONTEXT] [2023-01-24T21:09:33.507-08:00] ``` This PR removes that unused variable. Mirroring this same patch made by @drisspg internally. Pull Request resolved: https://github.com/pytorch/pytorch/pull/93024 Approved by: https://github.com/drisspg
Author
Committer
Parents
Loading