Unify libtorch_python_cuda_core_sources filelists between CMakeList, fbcode and bazel (#40554)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40554
Get a sublist of `libtorch_python_cuda_sources` named `libtorch_python_cuda_core_sources`. Use it to replace the list which has the same content in `CMakeList.txt`.
This is a change to make consistency between CMakeList and bazel.
Test Plan: CI
Reviewed By: malfet
Differential Revision: D22223207
fbshipit-source-id: 2bde3c42a0b2d60d689581561075df4ef52ab694