powderluv

Results 188 comments of powderluv

I don't think that fixes the issue. With the ARM recreate above you still get: ``` FAILED: include/llvm/IR/IntrinsicsR600.h /home/anush/github/torch-mlir/build/include/llvm/IR/IntrinsicsR600.h cd /home/anush/github/torch-mlir/build && /home/anush/github/torch-mlir/build/NATIVE/bin/llvm-tblgen -gen-intrinsic-enums -intrinsic-prefix=r600 -I /home/anush/github/torch-mlir/externals/llvm-project/llvm/include/llvm/IR -I/home/anush/github/torch-mlir/build/include -I/home/anush/github/torch-mlir/externals/llvm-project/llvm/include /home/anush/github/torch-mlir/externals/llvm-project/llvm/include/llvm/IR/Intrinsics.td...

Yes I did pass that and still no luck

Thank you for offering to take over.

With the host tools flag set LLVM builds native tools (the mlir_linalg_ods_gen_yaml) handles this well.

@marbre any luck with this issue ?

I think the arm-linux was just an easy repro case for folks to try out without requiring a macOS install. In all cases MLIR_TABLEGEN doesn't seem to respect `-DLLVM_USE_HOST_TOOLS=ON` like...

When `-DLLVM_USE_HOST_TOOLS=ON` any required host tools should be built with build_native_tool() and the cross-compile here: https://github.com/llvm/torch-mlir/issues/1094#issuecomment-1192347739 should just work and not fail. The `mlir-linalg-ods-yaml-gen` tool is built correctly and works...

Ok I did some digging into it: `-DLLVM_USE_HOST_TOOLS=ON` does the right thing for OSX and builds the NATIVE tools. It doesn't do the right thing on the linux recreate I...

ok more debug info: When we run cmake we set the correct values ``` ... -- Setting MLIR_TABLEGEN_EXE to /Users/anush/github/torch-mlir/build/NATIVE/bin/mlir-tblgen -- Setting MLIR_TABLEGEN_TARGET to MLIR-tablegen-host -- Setting MLIR_PDLL_TABLEGEN_EXE to /Users/anush/github/torch-mlir/build/NATIVE/bin/mlir-pdll...

have you been able to try HF_Bert ? We use that for our tests. We will continue to debug this.