Buck build for libtorch


(Todd Young) #1

I have built libtorch from source using the build_libtorch.py found here.

I would like use torch in some C++ libraries and have been considering building them with the Buck build system. Would the developers advise against this? Buck seems appealing, but I wonder if I am barking up the wrong tree.


(Michael Suo) #2

We use Buck internally within Facebook to build PyTorch, but not all the build rules are open-sourced. build_variables.py contains a sanitized subset of them that could be a good starting point.


(Todd Young) #3

Oh man, thank you. I didn’t take notice of build_variables.py. That looks great.