You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a conv_2d_nchw_fchw im2col implementation(conv2d-nchw-fchw-im2col.mlir) containing llvm.sdiv after lowering, which will cause __divdi3 -related errors as follows:
bash-5.2$ time mill -i 'tests.run[conv2d-nchw-fchw-im2col.mlir].run'
[7/438] tests.cases.buddy[conv2d-nchw-fchw-im2col.mlir].elf
ld.lld: error: undefined symbol: __divdi3
>>> referenced by LLVMDialectModule
>>> /tmp/nix-shell.gop5Y7/conv2d-nchw-fchw-im2col-d7bfd8.o:(test)
>>> referenced by LLVMDialectModule
>>> /tmp/nix-shell.gop5Y7/conv2d-nchw-fchw-im2col-d7bfd8.o:(test)
>>> referenced by LLVMDialectModule
>>> /tmp/nix-shell.gop5Y7/conv2d-nchw-fchw-im2col-d7bfd8.o:(test)
>>> referenced 1 more times
ld.lld: error: undefined symbol: __moddi3
>>> referenced by LLVMDialectModule
>>> /tmp/nix-shell.gop5Y7/conv2d-nchw-fchw-im2col-d7bfd8.o:(test)
clang: error: ld.lld command failed with exit code 1 (use -v to see invocation)
1 targets failed
tests.cases.buddy[conv2d-nchw-fchw-im2col.mlir].elf os.SubprocessException: CommandResult 1
os.proc.call(ProcessOps.scala:85)
ammonite.$file.build$tests$cases$Case.$anonfun$elf$5(build.sc:330)
mill.define.Task$TraverseCtx.evaluate(Task.scala:380)
Are there any suggestions to fix or bypass it?
conv2d-nchw-fchw-im2col.mlir is implemented as follows:
Further observation shows that the generated sdiv operation in this demo is of the i64 type, because the array index in MLIR is represented by index and will automatically be transformed to i64 when lowering. Since vector repo only supports i32 for now, this implementations requires specific modifications.
There is a conv_2d_nchw_fchw im2col implementation(conv2d-nchw-fchw-im2col.mlir) containing
llvm.sdiv
after lowering, which will cause __divdi3 -related errors as follows:Are there any suggestions to fix or bypass it?
conv2d-nchw-fchw-im2col.mlir is implemented as follows:
The text was updated successfully, but these errors were encountered: