openmc-dev / openmc

OpenMC Monte Carlo Code
https://docs.openmc.org
Other
771 stars 496 forks source link

Running depletion model using Parallel HDF5 #2463

Open PeterLee919 opened 1 year ago

PeterLee919 commented 1 year ago

I met a issue about hdf5 while trying to run depletion model through python API. The features are listed following:

  1. Use command "openmc --version", the results are: Build type: Release Compiler ID: GNU 8.5.0 MPI enabled: yes Parallel HDF5 enabled: yes PNG support: yes DAGMC support: no libMesh support: no MCPL support: no NCrystal support: no Coverage testing: no Profiling flags: no
  2. Try to print h5py.get_config().mpi, the result is "False". It indicated that the h5py in my environment is serial.
  3. Try to run depletion model using command "mpirun -np 24 python scripts.py", which contains "integrator.integrate()" for depletion calculation. Hit the issue: Unable to create file ( unable to lock file, errno=11, error message='Resource temporarily unavailable'). The location is "deplete/stepresult.py: line 248".

It's difficult for me to install h5py in "MPI mode" due to some conflicts. So, I wonder if there are some alternative solutions for this issue...

paulromano commented 1 year ago

@PeterLee919 I would take a look at these posts on the user's forum:

Do you have mpi4py installed in your Python environment?

PeterLee919 commented 1 year ago

mpi4py has been installed successfully before I try to using depletion calculation. It works fine for other situations

------------------ 原始邮件 ------------------ 发件人: "openmc-dev/openmc" @.>; 发送时间: 2023年4月11日(星期二) 晚上7:42 @.>; @.**@.>; 主题: Re: [openmc-dev/openmc] Running depletion model using Parallel HDF5 (Issue #2463)

@PeterLee919 I would take a look at these posts on the user's forum:

https://openmc.discourse.group/t/parallel-depletion-oserror-unable-to-create-file/610

https://openmc.discourse.group/t/error-failed-to-open-hdf5-file-with-mode-w-summary-h5/1360

Do you have mpi4py installed in your Python environment?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

PeterLee919 commented 1 year ago

I have checked the discussion in https://openmc.discourse.group/t/parallel-depletion-oserror-unable-to-create-file/610. I will try to fix this problem according to this web. I will let you know if this problem still exist