Ryuta Suzuki
Ryuta Suzuki
Perhaps, CIL : Common MLIR abstraction for C / C++/ Fortran https://github.com/compiler-tree-technologies/cil https://llvm.org/devmtg/2020-09/slides/CIL_Common_MLIR_Abstraction.pdf https://www.youtube.com/watch?v=3gcw-8C9UbA might help (if and only if this or similar technologies are implemented in MLIR one day)?
I tweaked `shape_lib_gen.py` to generate the strings grouped by raw string literal `func` ```c++ constexpr llvm::StringLiteral shapeLib(R"mlir( module {)mlir" R"func( func.func @__torch__.torch.jit._shape_functions.unary(%arg0: !torch.list) -> !torch.list { %true = torch.constant.bool true...
We can iterator for each "` func.func @...(`" by ```python funcs = re.findall("^ func\.func @(?s:.*?).*^ }$", asm, flags=re.M) for func in funcs: # extract function name func_name = re.search("^ func\.func...
Okay. I was too naive. I put every shape functions into the one .mlir file: ```python # Write out the shape functions .mlir file. shape_funcs_mlir_file = os.path.join( args.torch_transforms_cpp_dir, "ShapeFunctions.mlir") with...
Hi @fernando-valdez, thanks for reminding me. I haven't seen this issue with the recent GraalVM. Closing.
Try set `RUSTPYTHONPATH` to `your_rustpython_path\RustPython\Lib`. It works on my Windows.
@whgusdn321 `RUSTPYTHONPATH` is an environment variable. On my windows computer, I did `set RUSTPYTHONPATH=C:\msys64\home\ryuta\packages\rustpython\rustpython\Lib` ``` C:\msys64\home\ryuta\packages\rustpython\rustpython>cargo run --release warning: unused imports: `handleapi`, `winbase` --> vm\src\stdlib\os.rs:3276:26 | 3276 | use winapi::um::{handleapi,...
https://bugs.python.org/issue36011 may be related.
After #3210, I see ``` C:\msys64\home\ryuta\packages\rustpython\rustpython>cargo run --release --features ssl -- --install-pip Compiling rustpython-vm v0.1.2 (C:\msys64\home\ryuta\packages\rustpython\rustpython\vm) Compiling rustpython-stdlib v0.1.2 (C:\msys64\home\ryuta\packages\rustpython\rustpython\stdlib) Compiling rustpython v0.1.2 (C:\msys64\home\ryuta\packages\rustpython\rustpython) Finished release [optimized] target(s) in 1m...
`appdirs` is replaced by `platformdirs` https://github.com/pypa/pip/commit/ae6cf66c79734924544c4d5312dc0ca6072f324b#diff-8ff5175fdf2eb404b6eb6288021f0d4f1e33d7526c80b0ba471682208f26e293