Skip to content

Instantly share code, notes, and snippets.

@KiruyaMomochi
Last active March 27, 2022 04:52
Show Gist options
  • Save KiruyaMomochi/4df1e0446888e23e725e550fafe59560 to your computer and use it in GitHub Desktop.
Save KiruyaMomochi/4df1e0446888e23e725e550fafe59560 to your computer and use it in GitHub Desktop.
Spack libNBC patch
--- ./nbc_ineighbor_alltoallv.c 2012-04-30 04:05:48.000000000 +0800
+++ /home/kyaru/nbc_ineighbor_alltoallv.c 2022-03-27 12:50:20.698116400 +0800
@@ -182,7 +182,7 @@
#ifdef HAVE_SYS_WEAK_ALIAS_PRAGMA
-NBC_F77_ALLFUNC_(nbc_ineighbor_alltoallv,NBC_INEIGHBOR_ALLTOALLV,(void *sbuf, int *scount, int *stype, void *rbuf, int *rcount,
+NBC_F77_ALLFUNC_(nbc_ineighbor_alltoallv,NBC_INEIGHBOR_ALLTOALLV,(void *sbuf, int *scounts, int *stype, void *rbuf, int *rcounts,
int *rtype, int *fcomm, int *fhandle, int *ierr));
#pragma weak NBC_INEIGHBOR_ALLTOALLV = nbc_ineighbor_alltoallv_f
#pragma weak nbc_ineighbor_alltoallv = nbc_ineighbor_alltoallv_f
@@ -192,7 +192,7 @@
#pragma weak pnbc_ineighbor_alltoallv = nbc_ineighbor_alltoallv_f
#pragma weak pnbc_ineighbor_alltoallv_ = nbc_ineighbor_alltoallv_f
#pragma weak pnbc_ineighbor_alltoallv__ = nbc_ineighbor_alltoallv_f
-void nbc_ineighbor_alltoallv_f(void *sbuf, int *scount, int *stype, void *rbuf, int *rcount,
+void nbc_ineighbor_alltoallv_f(void *sbuf, int *scounts, int *stype, void *rbuf, int *rcounts,
int *rtype, int *fcomm, int *fhandle, int *ierr)
#else
void NBC_F77_FUNC_(nbc_ineighbor_alltoallv,NBC_INEIGHBOR_ALLTOALLV)(void *sbuf, int *scounts, int *sdispls, int *stype, void *rbuf, int *rcounts,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment