Skip to content

Commit d54fef7

Browse files
Fixed ImportError due to undefined symbolis in Shared object
C function definitions for multi-iterators moved to header file need to be declared static to avoid being visible in the SO file.
1 parent 23f4a2e commit d54fef7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mkl_fft/src/multi_iter.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void multi_iter_masked_free(multi_iter_masked_t*);
7272
int multi_iter_masked_next(multi_iter_masked_t*);
7373
*/
7474

75-
NPY_INLINE void
75+
static NPY_INLINE void
7676
multi_iter_new(multi_iter_t* mi, npy_intp shape[], int rank) {
7777
int i;
7878
char d = 0;
@@ -94,7 +94,7 @@ multi_iter_new(multi_iter_t* mi, npy_intp shape[], int rank) {
9494
return;
9595
}
9696

97-
NPY_INLINE void
97+
static NPY_INLINE void
9898
multi_iter_masked_new(
9999
multi_iter_masked_t* mi, npy_intp shape[], int rank, int mask[], int mask_len)
100100
{
@@ -124,7 +124,7 @@ multi_iter_masked_new(
124124
}
125125

126126

127-
NPY_INLINE void
127+
static NPY_INLINE void
128128
multi_iter_masked_free(multi_iter_masked_t *mi) {
129129
if (mi) {
130130
if(MultiIter_Index(*mi))
@@ -140,7 +140,7 @@ multi_iter_masked_free(multi_iter_masked_t *mi) {
140140
return;
141141
}
142142

143-
NPY_INLINE void
143+
static NPY_INLINE void
144144
multi_iter_free(multi_iter_t *mi) {
145145
if (mi) {
146146
if(MultiIter_Index(*mi))
@@ -156,7 +156,7 @@ multi_iter_free(multi_iter_t *mi) {
156156

157157

158158
/* Modifies iterator in-place, returns 1 when iterator is empty, 0 otherwise */
159-
NPY_INLINE int
159+
static NPY_INLINE int
160160
multi_iter_next(multi_iter_t *mi) {
161161
int j, k;
162162

@@ -178,7 +178,7 @@ multi_iter_next(multi_iter_t *mi) {
178178
}
179179

180180
/* Modifies iterator in-place, returns 1 when iterator is empty, 0 otherwise */
181-
NPY_INLINE int
181+
static NPY_INLINE int
182182
multi_iter_masked_next(multi_iter_masked_t *mi) {
183183
int j, k;
184184

0 commit comments

Comments
 (0)