Changeset 826 for soft/giet_vm/applications/rosenfeld/nrc2/src/nralloc2.c
- Timestamp:
- Jul 13, 2017, 11:01:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/src/nralloc2.c
r821 r826 160 160 #undef remote_type_matrix 161 161 #define remote_type_matrix(t) \ 162 t ** short_name(t,remote_,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch ) \162 t ** short_name(t,remote_,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t x, int32_t y) \ 163 163 { \ 164 164 int32_t nrow = nrh - nrl + 1; \ … … 166 166 t ** m; \ 167 167 /* allocate pointers to row */ \ 168 m = malloc((nrow + NR_END) * sizeof(t *));\168 m = remote_malloc((nrow + NR_END) * sizeof(t *), x, y); \ 169 169 if (m == NULL) { \ 170 170 nrerror("*** Error: allocation failure in %s\n", __func__); \ … … 173 173 m -= nrl; \ 174 174 /* allocate rows and set pointers to them */ \ 175 m[nrl] = malloc((nrow * ncol + NR_END) * sizeof(t));\175 m[nrl] = remote_malloc((nrow * ncol + NR_END) * sizeof(t), x, y); \ 176 176 if (m[nrl] == NULL) { \ 177 177 nrerror("*** Error: allocation failure in %s\n", __func__); \
Note: See TracChangeset
for help on using the changeset viewer.