-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fixed initialization of DNDarrays communicator in some routines #1075
Fixed initialization of DNDarrays communicator in some routines #1075
Conversation
…y-initialized-when-creating-new-DNDarrays-in-some-routines/1074-my-bug-fix
for more information, see https://pre-commit.ci
@ClaudiaComito I am not understanding how to initialise codecov |
@AsRaNi1 thank you for the addition to the code base. Do you mind fixing the merge issues? |
@AsRaNi1 indeed, thank you so much. We have been discussing the issue of activating codecov for external/first-time contributors, @mtar is looking into it. In the meantime:
Thanks all! |
|
I was more thinking of a test in which some operation is performed on a subset of the available processes. |
This is exactly what I meant, but maybe I expressed it a bit lengthy and unclear |
No problem, my main point is we don't need to test this on every operation. For example, in the |
Yes sure! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
@Markus-Goetz please review the following PR |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
…y-initialized-when-creating-new-DNDarrays-in-some-routines/1074-my-bug-fix
The following error is coming in pre-commit.ci while testing |
@AsRaNi1 #1103 is in the queue and will be merged into |
…y-initialized-when-creating-new-DNDarrays-in-some-routines/1074-my-bug-fix
I have updated the branch |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
Unfortunately, the detailed results of the CI are not available to externals, so I post the result here:
|
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
I'll make the changes! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
changed `arr=arr.comm` to `comm=arr.comm`
Thank you for the PR! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
@mtar The CI failed for AMD and CUDA and actually I dont know whats the problem because no |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
…reating-new-DNDarrays-in-some-routines/1074-my-bug-fix
Thank you for the PR! |
fixed |
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.
From my point of view, the changes are fine. Therefore I recommend merging, since the CI runs through as well.
@ClaudiaComito From my point of view, this PR is ready to merge. Do you agree? |
@mrfh92 Yes, please go ahead as soon as the CI is through. Congrats @AsRaNi1 and thanks for your contribution! |
@AsRaNi1 Thanks for your work! :) |
Description
Previously some HeAT routines, e.g.
matmul
, the initialization of new DNDarrays (usually the output of the routine) was done without specifying a communicator for the new DNDarray properly.In matmul the output array c = a @ b is initialized as
I have added
comm=a.comm
here and at other comparable placesIssue/s resolved: #1074
Changes proposed:
Previously gave error for the code snippet in #1074
Type of change
Bug fix
Due Diligence
Does this change modify the behaviour of other functions? If so, which?
no