pytorch_compiler_tutorial icon indicating copy to clipboard operation
pytorch_compiler_tutorial copied to clipboard

Error when running ./build.sh

Open Sharath-Ramachandran opened this issue 6 years ago • 2 comments

Hi, When I run the build.sh file after setting the -DPYTORCH_DIR to the pytorch build from the source directory, I get the following error. Any idea on how to solve it? image

Sharath-Ramachandran avatar Jun 14 '19 07:06 Sharath-Ramachandran

what is the dir you set -DPYTORCH_DIR to? The build folder output from python setup.py develop doesn't contain everything I believe (e.g. build/include only has the c10d folder). You'll need to instead python setup.py install to a local dir.

bwasti avatar Jul 02 '19 17:07 bwasti

looks like the include path has changed with recent pytorch version. I tried foll. and it fixed above issues

#include <torch/csrc/jit/runtime/custom_operator.h> #include <torch/csrc/jit/passes/pass_manager.h>

ananthdurbha avatar Jul 18 '20 16:07 ananthdurbha