Add device-specific cuFFT plan caches (#19300)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/19224
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19300
Differential Revision: D14986967
Pulled By: soumith
fbshipit-source-id: 8c31237db50d6924bba1472434c10326610d9255