Relationship between CMake build and python

Sorry to bother everyone again, but I really need to make myself understand the building structure of PyTorch.

  • CMake out-of-source buld: alway can ben done successfully, after my manual configuration.
  • python build --cmake tried to build PyTorch independelty, which seems to ignore ALL my out-of-source cmake configuration, even if with --cmake configuration. And, it looks python build --cmake wouldn’t let me manually configure the cmake configurations.

Again, my questions:

  1. Is there any possibility that when I tried to do python build --cmake, it would force to use cmake out-of-source configuration inside subfolder build ?
  2. Is there a similar command that use ccmake? say: python build --ccmake ??
  3. I can clearly tell that by using cmake build, I already successfully built out So, how to use PyTorch in python, without building PyTorch by running python build -cmake and install again? Is it possible? I mean: with, can I load torch module from within python script?

Thank you very much…

I got it… Problem solved…
It looks I can do

  1. CMake build FIRST
  2. TORCH_CUDA_ARCH_LIST="8.6" NO_TEST=1 USE_MKLDNN=0 FULL_CAFFE2=1 python bdist_wheel