-
Notifications
You must be signed in to change notification settings - Fork 6
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
Even more possible optimizations #33
base: exawind
Are you sure you want to change the base?
Conversation
int *all_snd_intData, *all_rcv_intData; | ||
all_snd_intData=(int *) malloc(sizeof(int)*all_snd_nints); | ||
all_rcv_intData=(int *) malloc(sizeof(int)*all_rcv_nints); | ||
for (int i = 0; i < all_snd_nints; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
for (int i = 0; i < all_snd_nints; i++) { | ||
all_snd_intData[i] = 0; | ||
} | ||
for (int i = 0; i < all_rcv_nints; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
} | ||
std::vector<int> snd_int_displs(numprocs+1, 0); | ||
std::vector<int> rcv_int_displs(numprocs+1, 0); | ||
for (int i=1; i <= numprocs; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
snd_int_displs[i] = snd_int_displs[i-1] + sint[i-1]; | ||
rcv_int_displs[i] = rcv_int_displs[i-1] + rint[i-1]; | ||
} | ||
for (int i=0; i < nsend; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
REAL *all_snd_realData, *all_rcv_realData; | ||
all_snd_realData=(REAL *) malloc(sizeof(REAL)*all_snd_nreals); | ||
all_rcv_realData=(REAL *) malloc(sizeof(REAL)*all_rcv_nreals); | ||
for (int i = 0; i < all_snd_nreals; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
rcvPack[i].intData[j] = all_rcv_intData[displ+j]; | ||
} | ||
} | ||
for (int i=0; i < nrecv; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable Note
line 217
} | ||
} | ||
|
||
// FIXME: here and above I think I should move this a bit lower |
Check notice
Code scanning / CodeQL
FIXME comment Note
scomm, | ||
&real_request); | ||
|
||
// FIXME: here and above I think I should move this a bit lower |
Check notice
Code scanning / CodeQL
FIXME comment Note
@@ -968,7 +969,7 @@ | |||
|
|||
if (nsend == 0) { | |||
receptors.clear(); | |||
return; | |||
//return; |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -743,7 +744,7 @@ | |||
fp=NULL; | |||
// | |||
pc->getMap(&nsend,&nrecv,&sndMap,&rcvMap); | |||
if (nsend==0) return; | |||
//if (nsend==0) return; |
Check notice
Code scanning / CodeQL
Commented-out code Note
No description provided.