Add hascuSOLVER flag to Context (#69825)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69825
As per title.
cc ngimel jianyuh nikitaved pearu mruberry walterddr IvanYashchuk xwang233 Lezcano
Test Plan: Imported from OSS
Reviewed By: mikaylagawarecki, ngimel
Differential Revision: D33751986
Pulled By: mruberry
fbshipit-source-id: 8625c7246d627b5c3680d92d4e8afdd7efc7dd69
(cherry picked from commit 7ca16beb28bc541b65cd07271f40c889c30e3b85)