Replies: 4 comments
-
We've had a short setback with the build setup for cuda and will be reenabling it shortly (within the week). In the meantime, official pypi wheels and nightly releases from last week do have it enabled. That dict is just shortcuts and it is possible to specify it explicitly. @ThomasRaoux can you provide an example from the benchmark scripts? |
Beta Was this translation helpful? Give feedback.
-
@stellaraccident , thanks. I took the easy route - pip install . Would the next pip package have the cuda backend ? When is it expected to be available. Have another related question. I see that the list of options to iree.compiler.tf.compile_module () is at CompilerOptions. Is it still using grappler -> xla flow or it is possible to just use grappler now ? |
Beta Was this translation helpful? Give feedback.
-
I believe we got the cuda build and bots fixed today, and we will find out when tonight's nightly builds (works locally). There may be a terminology gap: we use a similar conversion path as is used for cloud TPUs. Internally, i think grappler is involved but isn't really a detail we care about. IREE's core compiler takes MHLO (when coming from TF). Most of our new investment is in PyTorch, Jax, and TFLite and just rely on the TF team for their conversions and don't look that much at the details. |
Beta Was this translation helpful? Give feedback.
-
@stellaraccident , tried the newest release at https://github.com/google/iree/releases/tag/candidate-20220204.38 . Seems to fail with the following error in the MNIST example with vmvx and dylib-llvm-aot backend. Works with PyPI 20220109.9 .
What is backend string for cuda ? AFAIK, MHLO is similar to XLA emit, assuming M stands for meta. Just curious, what is the input in case of PyTorch, MHLO ? |
Beta Was this translation helpful? Give feedback.
-
Only see bindings/python/iree/runtime/system_api.py. Only see the following .
TARGET_BACKEND_TO_DRIVER = {
"dylib-llvm-aot": "dylib",
"vmvx": "vmvx",
"vulkan-spirv": "vulkan",
}
Beta Was this translation helpful? Give feedback.
All reactions