-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GatherND]: Implement verification, shape inference, and code gen. #1382
Conversation
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sstamenova I am seeing MLIR-Windows-CI cancelled. Would you be able to let us know what is happening? I have seen it for many other PRs as well. Thanks |
@etiotto there seems to be an issue during compilation
|
There's most likely an outage that's impacting the builds - the logs don't seem to indicate that anything else is going on. :(. Let me know if it persists and I'll spend some more time looking into it, but if it's an outage, I expect it will go back to normal soon. |
I am using compound literals (https://en.cppreference.com/w/c/language/compound_literal) which are legal constructs since C99. Likely the issue here is that |
It does not seems to be a warning, I see an "Error" |
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
Yes I pushed a fix now. |
@sstamenova I have some code in OMTensor.inc that uses function like macros. The code compiles on all platforms except on Windows. Looking at the messages in the log did not really help me figuring out what the issue might be. Could you take a look if you have some time please ? Any suggestions very much appreciated. P.S.: I could undo the change in OMTensor.inc as it is not essential for this PR. But if the issue turn out to be easy to fix that would be preferable. |
Signed-off-by: Ettore Tiotto <etiotto@ca.ibm.com>
I got a Windows VM and was able to reproduce the issue using a cut down test. It turns out that MSVC, for historical reasons, "interprets" the C specification somewhat differently than gcc & clang. MSCV provides a compiler option (https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview?view=msvc-170) that makes the preprocessor more conforming to the C standard. Using that flag fixed the problem for the reduced test case. I have added it to the CMakefile and triggered a new build ... |
@etiotto : Please let me know if it doesn't work and I'll have a look. I was OOF earlier this week, but I'm back in the office now. |
Jenkins Linux s390x Build #5599 [push] [GatherND]: Implement v... started at 13:00 |
Jenkins Linux amd64 Build #5584 [push] [GatherND]: Implement v... started at 12:00 |
Jenkins Linux ppc64le Build #4721 [push] [GatherND]: Implement v... started at 13:02 |
Jenkins Linux s390x Build #5599 [push] [GatherND]: Implement v... passed after 53 min |
Jenkins Linux ppc64le Build #4721 [push] [GatherND]: Implement v... passed after 57 min |
Jenkins Linux amd64 Build #5584 [push] [GatherND]: Implement v... passed after 1 hr 2 min |
Implement support for the ONNX GatherND operator:
Signed-off-by: Ettore Tiotto etiotto@ca.ibm.com