Migrate USE_MAGMA config macro to ATen (#66390)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66390
Test Plan: Imported from OSS
Reviewed By: malfet, bdhirsh
Differential Revision: D31547712
Pulled By: ngimel
fbshipit-source-id: 1b2ebc0d5b5d2199029274eabdd014f343cfbdd3