-
Notifications
You must be signed in to change notification settings - Fork 218
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
Topic profile hdf5 2 #280
Topic profile hdf5 2 #280
Changes from all commits
018c0a7
9ffa131
04cc90c
1218bef
d06ae06
309fb99
eda79b4
30ba1c3
fd23759
37c82a9
b76e35e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,24 +173,14 @@ class GridBuffer | |
*/ | ||
virtual ~GridBuffer() | ||
{ | ||
for (uint32_t i = 1; i < 27; ++i) | ||
for (uint32_t i = 0; i < 27; ++i) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. huch, has this been a bug @psychocoderHPC ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not realy because 0 means exchange to itself and is always NULL. But better to clean all, we don't know if someone will send data to its own prozess^^ I think nowbody has testet this and the result is undefined. It can be that we must add an assert check that nobody can create exchange 0. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually sending to one self can be quite useful while writing generic algorithms. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. edited: all right, looks good. |
||
{ | ||
if (sendExchanges[i] != NULL) | ||
{ | ||
delete sendExchanges[i]; | ||
sendExchanges[i] = NULL; | ||
} | ||
if (sendExchanges[i] != NULL) | ||
{ | ||
delete receiveExchanges[i]; | ||
receiveExchanges[i] = NULL; | ||
} | ||
__delete(sendExchanges[i]); | ||
__delete(receiveExchanges[i]); | ||
} | ||
|
||
delete hostBuffer; | ||
hostBuffer = NULL; | ||
delete deviceBuffer; | ||
deviceBuffer = NULL; | ||
__delete(hostBuffer); | ||
__delete(deviceBuffer); | ||
} | ||
|
||
/** | ||
|
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.
? :)