Trying to run a program with OpenCoarrays in WSL returns a strange warning.
A minimum working example:
program hello_coarray
print*, "hello from", this_image(),"out of",num_images(),"images."
end program hello_coarray
Execution and warning message:
$ cafrun -n 4 hello_caf.exe
--------------------------------------------------------------------------
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: DESKTOP-6UETSCV
-------------------------------------------------------------------------
hello from 1 out of 4 images.
hello from 2 out of 4 images.
hello from 3 out of 4 images.
hello from 4 out of 4 images.
[DESKTOP-6UETSCV:00198] 3 more processes have sent help message help-btl-vader.txt / cma-permission-denied
[DESKTOP-6UETSCV:00198] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
This issue is not original, it has already been reported a couple of times in different forums*. I implemented the suggested solutions, but it persists. I am also not sure that I fully understand the source of the warning as well as the suggested solutions, basically I just blindly applied them.
I would greatly appreciate it if someone could enlighten me here, by explaining in plain English what is the issue.
*Similar reported issues:
- https://github.com/microsoft/WSL/issues/3397
- https://groups.io/g/OpenHPC-users/topic/openmpi_and_shared_memory/16489081?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,16489081
- https://unix.stackexchange.com/questions/329504/proc-sys-kernel-yama-ptrace-scope-keeps-resetting-to-1/329506#329506
- https://sites.google.com/site/ccomsatuc/resources/steno-cluster/openmpi