Locally nightly build PyTorch

Recently I found this repo. A quick question, can this tool be used to build the source from local machine to generate a wheel file every day ?

Does it automatically detect the cuda version and non-cuda version ?