Skip to content
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

Interchangeable between ucc_status_t and ucs_status_t? #170

Closed
kingchc opened this issue Apr 29, 2021 · 3 comments
Closed

Interchangeable between ucc_status_t and ucs_status_t? #170

kingchc opened this issue Apr 29, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@kingchc
Copy link
Contributor

kingchc commented Apr 29, 2021

My compiler (clang with -Wenum-conversion) is complaining the following:

third-party/ucc/src/components/mc/cuda/mc_cuda.c:187:9: error: implicit conversion from enumeration type 'ucs_status_t' to different enumeration type 'ucc_status_t' [-Werror,-Wenum-conversion]
        CUDADRV_FUNC(cuDeviceGetAttribute(&mem_ops_attr,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
third-party/ucc/src/components/mc/cuda/mc_cuda.h:116:32: note: expanded from macro 'CUDADRV_FUNC'
        ucc_status_t _status = UCS_OK;
                     ~~~~~~~   ^~~~~~

It looks like a typo to me:

ucc_status_t _status = UCS_OK; \

Another similar variable in TL NCCL:
ucs_status_t status;

Just wanted to check if ucc_status_t and ucs_status_t is Interchangeable since they are slightly different in my understanding. Is ucs_status_t a superset of ucc_status_t?

cc @Sergei-Lebedev

@Sergei-Lebedev
Copy link
Contributor

Hi @kingchc, this is a bug. In general ucc_status_t is not interchangeable with ucs_status_t, only for positive statuses.
Will fix and add clang option to our tests, , thanks for reporting.

@Sergei-Lebedev Sergei-Lebedev added the bug Something isn't working label Apr 29, 2021
@Sergei-Lebedev
Copy link
Contributor

Fixed in v0.1.x release branch. For master branch there is similar PR but with more changes #171

@vspetrov
Copy link
Collaborator

@Sergei-Lebedev can we close?

@kingchc kingchc closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants