CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   REEF3D (https://www.cfd-online.com/Forums/reef3d/)
-   -   An error occurred running the code (https://www.cfd-online.com/Forums/reef3d/241022-error-occurred-running-code.html)

changshuqi February 5, 2022 03:16

An error occurred running the code
 
When I used the example in Tutorials, there was an error in the last step, with the following error code.


WARNING: Linux kernel CMA support was requested via the
btl_vader_single_copy_mechanism MCA variable, but CMA support is
not available due to restrictive ptrace settings.

The vader shared memory BTL will fall back on another single-copy
mechanism if one is available. This may result in lower performance.

Local host: LAPTOP-VF066KCK
--------------------------------------------------------------------------

REEF3D (c) 2008-2021 Hans Bihs

:: Open-Source Hydrodynamics

v_211030

read ctrl

!!! Inconsistent M 10 parameter, needs to be the same in REEF3D and DIVEMesh !
!!! please check the manual!



--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 0 on
node LAPTOP-VF066KCK exiting improperly. There are three reasons this could occur:

1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
for all processes to call "init". By rule, if one process calls "init",
then ALL processes must call "init" prior to termination.

2. this process called "init", but exited without calling "finalize".
By rule, all processes that call "init" MUST call "finalize" prior to
exiting or it will be considered an "abnormal termination"

3. this process called "MPI_Abort" or "orte_abort" and the mca parameter
orte_create_session_dirs is set to false. In this case, the run-time cannot
detect that the abort call was an abnormal termination. Hence, the only
error message you will receive is this one.

This may have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).

You can avoid this message by specifying -quiet on the mpirun command line.
--------------------------------------------------------------------------
[LAPTOP-VF066KCK:00111] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
[LAPTOP-VF066KCK:00111] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

kamath February 7, 2022 05:55

Hi Chang,

Your problem might arise from two causes.
1. As the error says, M 10 mismatch. You need to have M 10 4 in both files, ctrl.txt and control.txt. Then you have to issue the command- mpirun -n 4 ree3fd.


2. The hardware of your computer. Are you sure you have 4 physical cores available? You could check this by slowly increasing the number of cores.
First, use M 10 1 in control, ctrl files and use mpirun -n 1 reef3d.
Then M 10 2 and check
Look at what stage you get the error.

That should help you figure out where the error is coming from.

Hope that helps!

changshuqi February 9, 2022 03:38

I really appreciate your help.
I changed the value after M 10 according to your suggestion, but the result still showed the same error warning as before. I used the examples 8-14 in the Tutorials folder. I tried to use other examples. Some of the other examples would have worked under M 10 4, but this did not. The example originally provided an M 10 value of 256, which I changed to 1, 2, 3, 4, resulting in error warnings.
I don't know if it's my laptop that can't run the program. Thank you very much for your help.


All times are GMT -4. The time now is 11:27.