Skip to content

Commit 881717c

Browse files
Fixed typo, defined MKL_BLACS_MPICH2 to -1 if undefined
1 parent d3199ab commit 881717c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mkl/_mkl_service.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ import warnings
3131
cimport mkl._mkl_service as mkl
3232

3333

34+
cdef extern from *:
35+
"""
36+
/* defind MKL_BLACS_MPICH2 if undefined */
37+
#ifndef MKL_BLACS_MPICH2
38+
#define MKL_BLACS_MPICH2 -1
39+
#endif
40+
"""
41+
3442
ctypedef struct MemStatData:
3543
# DataAllocatedBytes, AllocatedBuffers
3644
mkl.MKL_INT64 allocated_bytes

0 commit comments

Comments
 (0)