You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been getting some seg faults from the code when running with numpy 1.26.4. Behavior goes away when using numpy 1.22.4. If reproducible on your end, you could simply limit the numpy version in the setup.py.
Steps to reproduce issue
pip install numpy==1.26.4
cd /path/to/pysurf
pip install .
find yourself a nice cgns file
run the python script:
from pysurf import tsurf_tools
from mpi4py import MPI
nodes, sectionDict = tsurf_tools.getCGNSsections("path/to/file.cgns")
Current behavior
Seg fault, seems to be occuring on line 33 of tsurf_tools.py: arraySizes = cgnsAPI.cgnsapi.readcgns(inputFile, comm.py2f())
I put a print statement at the beginning of cgnsAPI.F90::readCGNS (line 70) in the Fortran code, but the code seg faults before getting there.
MPT ERROR: Rank 0(g:0) received signal SIGSEGV(11)
Expected behavior
No seg fault.
Code versions
Operating System: TOSS 4
Python: Python 3.9.5 and 3.12
MPI: HPE MPT 2.28 04/24/23 12:22:36-mraymond
CGNS: 4.3.0
PETSc: N/A
Compiler: ifort (IFORT) 19.1.3.304 20200925
This repository:
The text was updated successfully, but these errors were encountered:
Hi and thanks for the issue. We have had issues with some numpy versions in the past. However, I am not able to replicate this issue that you are describing using our Intel container mdolab/public:u22-intel-impi-latest. Updating numpy to 1.26.4 and importing one of the test CGNS files (e.g., ./input_files/cube.cgns) seems to work without issue. I also tested this on another system (using GCC compiler and OpenMPI, and Python 3.12) without any issues.
That being said, at the moment, we dont test nor support numpy 1.26.x, but we are in the process of updating the dependency versions we support and my quick test seems to work. For supported versions, please see our docs. The latest numpy version we support is 1.25.2, which I suggest you try. You might also want to try other patch version of numpy 1.26.
Description
I've been getting some seg faults from the code when running with numpy 1.26.4. Behavior goes away when using numpy 1.22.4. If reproducible on your end, you could simply limit the numpy version in the setup.py.
Steps to reproduce issue
from pysurf import tsurf_tools
from mpi4py import MPI
nodes, sectionDict = tsurf_tools.getCGNSsections("path/to/file.cgns")
Current behavior
Seg fault, seems to be occuring on line 33 of tsurf_tools.py:
arraySizes = cgnsAPI.cgnsapi.readcgns(inputFile, comm.py2f())
I put a print statement at the beginning of cgnsAPI.F90::readCGNS (line 70) in the Fortran code, but the code seg faults before getting there.
MPT ERROR: Rank 0(g:0) received signal SIGSEGV(11)
Expected behavior
No seg fault.
Code versions
The text was updated successfully, but these errors were encountered: