'Error compiling Cython file' when running SWE 'Okushiri_tsunami' with OpenMP

12 views
Skip to first unread message

Riana Hary RANJALAHY ANDRIAMANANA

unread,
May 27, 2024, 6:18:50 AMMay 27
to pysph-users
Hello PySPH-users,

the error happens when running 'Okushiri tsunami' example (SWE) with OpenMP,
here is the output of running '>python -m okushiri_tsunami --tf 1 --openmp'

```
warning: C:\Users\mugen\Documents\pysph3913_2019\nvenv\lib\site-packages\pysph\base\nnps_base.pxd:27:13: 'INT_MAX' redeclared

Error compiling Cython file:
------------------------------------------------------------
...
            for d_idx in prange(D_START_IDX, NP_DEST, 1, schedule='dynamic', chunksize=64):
                nnps.get_nearest_neighbors(d_idx, <UIntArray>self.nbrs[thread_id])
                NBRS = (<UIntArray>self.nbrs[thread_id]).data
                N_NBRS = (<UIntArray>self.nbrs[thread_id]).length

                self.fluid_bottom_elevation0.loop_all(d_shep_corr, d_x, d_y, d_idx, s_x, s_y, s_V, s_idx, s_h, self.kernel, NBRS, N_NBRS)
                                                                                                  ^
------------------------------------------------------------

C:\Users\mugen\.pysph\source\py3.9-win-amd64\m_8f6dcd6f2e259389a2d420583e21fbee.pyx:668:99: local variable 's_idx' referenced before assignment
m_8f6dcd6f2e259389a2d420583e21fbee.cpp
C:\Users\mugen\.pysph\source\py3.9-win-amd64\m_8f6dcd6f2e259389a2d420583e21fbee.cpp(1): fatal error C1189: #error:  Do not use this file, it is the result of a failed Cython compilation.
********************************************************************************
ERROR


********************************************************************************
Compilation of code failed, please check error messages above.
```

what should I do to deal with this problem?
Regards,
Hary


Reply all
Reply to author
Forward
0 new messages