Build speed_benchmark_torch for x86 instead of android?

In this thread, I learned how to compile for Android the file pytorch/binaries/, which lets you benchmark the speed of torchscript models. However, for debugging purposes, I’d like to build this file for my desktop computer’s Intel CPU, so that I can better debug some failures I am getting.

Does anyone know how to compile for desktop CPU?

I figured out a way to do it. I do a fresh build of pytorch as follows:

cd pytorch
python build_ext 

An x86 CPU compatible (rather than Android or iOS compatible) binary appears here:

And, I was able to run it successfully on my desktop computer’s CPU.