Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

C++ compatability of headers #9

Open
csehydrogen opened this issue Nov 10, 2020 · 0 comments
Open

C++ compatability of headers #9

csehydrogen opened this issue Nov 10, 2020 · 0 comments

Comments

@csehydrogen
Copy link

Although UCX is C library, all headers of UCX can be included in C++ without any problems.
In xucg, however, one error prevents headers to be included in C++.

api/ucg_mpi.h:118:5: error: designator order for field ‘ucg_collective::<unnamed struct>::<unnamed union>::op’ does not match declaration order in ‘ucg_collective::<unnamed struct>’

This is due to the fact that C++ does not support out-of-order designated initializer, while C allows.
This can be solved by initializing ucg_collective_params_t in-order.

shizhibao pushed a commit to shizhibao/xucg that referenced this issue Jan 16, 2021
solved the segment error of ucg_builtin_am_handler
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant