Error while running JIT: single f32 result supported


I’m trying to use mlir-cuda-runner to run some simple codes. There’s only a main function in my sample, and it throws the error:

only single llvm.f32 function result supported

I’ve also tried the test sample under mlir/test/mlir-cuda-runner/, for example all-reduce-and.mlir, and met the same error.

I’ve noticed that the error is thrown by JITRunner.

Why this happend? How to solve the problem? Thanks!

Because your main function does not return f32, precisely the issue that the error message indicates.

Make your main function return f32. Alternatively, indicate to the runner that the function returns void with --entry-point-result=void. You seem to have ignored the flags that the test passes to the runner.

1 Like