Junjie Mao

Results 22 comments of Junjie Mao

I have tried the latest ocaml and camlp4 from the github mirror. The problem remains.

The issue seems to be related to the cygwin64 COMDATA hacks which are introduced in commit 37e6b5ad904b0d4648cebb09c19ed10e6f8dea28. The library works if the snippets are commented out.

Disabling the following fragment in add_reloc_table works in my case: ``` if sec.sec_opts &&& 0x1000l 0l && has_prefix ".rdata$.refptr." sec.sec_name then begin (* under Cygwin64, gcc introduces mergable (link once)...

> You can already pass additional arguments to clang using the `c_args` argument, which uses the documented `bindgen -- ` format, avoiding the need to wrap the bindgen call in...

An alternative to avoid https://github.com/rust-lang/rust-bindgen/issues/2682 can be that bindgen() accepts a `clang` argument of type external_program. If that is provided, meson searches for the corresponding libclang.so via `clang -print-file-name=libclang-.so` and...

Got your point and thanks for the suggestions. I'll also check if this can be fixed by always finding clang/libclang of the same version in the sys-clang crate. If that...

Close this PR. It is clear that allowing arbitrary environment variables for bindgen is not a proper direction to go at the moment. The author of clang-sys crate is considering...

Not sure if the model is referenced in any global variable that defers its deletion. Also, I think we should consider cleaning up duplicated definitions of `print_rank_0` and replacing them...

@deepcharm Thanks for the patch! Compiled autograd is not compatible with DeepCompile today as it will override the backward graph to which DeepCompile has inserted ZeRO ops. Having both enabled...

Thanks for the update! I'm trying different combinations of compile options. When playing with this model (https://gist.github.com/eternalNight/3c2cf8c703f1e9e7742d3b7f9e1edae3), I got ``` [rank2]: torch._dynamo.exc.TorchRuntimeError: Dynamo failed to run FX node with fake...