[profiler] DISABLE_CUPTI_LAZY_REINIT for CUDA 12 as well (#107744)
Summary:
Apparently CUDA 12 + CUPTI can fail with an illegal memory access, similar to what we saw with CUDA 11 (https://github.com/pytorch/pytorch/issues/75504).
For now we'll just turn on DISABLE_CUPTI_LAZY_REINIT, which will fix this internally. In OSS, this will probably still break - which will hopefully give us a repro.
Differential Revision: D48568888
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107744
Approved by: https://github.com/aaronenyeshi