Skip to content

Commit

Permalink
Fix caffee2 for llvm trunk
Browse files Browse the repository at this point in the history
Summary: Fix build with llvm-trunk. With D25877605 (pytorch@cb37709), we need to explicitly include `llvm/Support/Host.h` in `llvm_jit.cpp`.

Test Plan: `buck build mode/opt-clang -j 56 sigrid/predictor/v2:sigrid_remote_predictor -c cxx.extra_cxxflags="-Wforce-no-error" -c cxx.modules=False -c cxx.use_default_autofdo_profile=False`

Reviewed By: bertmaher

Differential Revision: D25920968

fbshipit-source-id: 4b80d5072907f50d01e8fbef41cda8a89dd66a96
  • Loading branch information
WenleiHe authored and facebook-github-bot committed Jan 16, 2021
1 parent 2569dc7 commit b832604
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch/csrc/jit/tensorexpr/llvm_jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <llvm/IR/DataLayout.h>
#include <llvm/IR/Mangler.h>
#include <llvm/Support/DynamicLibrary.h>
#include <llvm/Support/Host.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Target/TargetMachine.h>

Expand Down

0 comments on commit b832604

Please sign in to comment.