-
Notifications
You must be signed in to change notification settings - Fork 6
Even more possible optimizations #33
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
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
| 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
| } | ||
| 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
| 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
| 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
| rcvPack[i].intData[j] = all_rcv_intData[displ+j]; | ||
| } | ||
| } | ||
| for (int i=0; i < nrecv; i++) { |
Check notice
Code scanning / CodeQL
Declaration hides variable
| } | ||
| } | ||
|
|
||
| // FIXME: here and above I think I should move this a bit lower |
Check notice
Code scanning / CodeQL
FIXME comment
| scomm, | ||
| &real_request); | ||
|
|
||
| // FIXME: here and above I think I should move this a bit lower |
Check notice
Code scanning / CodeQL
FIXME comment
| if (nsend == 0) { | ||
| receptors.clear(); | ||
| return; | ||
| //return; |
Check notice
Code scanning / CodeQL
Commented-out code
| // | ||
| pc->getMap(&nsend,&nrecv,&sndMap,&rcvMap); | ||
| if (nsend==0) return; | ||
| //if (nsend==0) return; |
Check notice
Code scanning / CodeQL
Commented-out code
No description provided.