If you have yama installed you can try: echo 1 > /proc/sys/kernel/yama/ptrace_scope
as root. -Nathan On Thu, Feb 19, 2015 at 11:06:09AM -0500, Eric Chamberland wrote: > By the way, > > I have tried two others things: > > #1- I launched it as root: > > mpiexec --mca mca_btl_vader_single_copy_mechanism cma --allow-run-as-root > -np 2 ./hw > > #2- Found this > (http://askubuntu.com/questions/146160/what-is-the-ptrace-scope-workaround-for-wine-programs-and-are-there-any-risks) > and tried this: > > sudo setcap cap_sys_ptrace=eip /tmp/hw > > On both RedHat 6.5 and OpenSuse 12.3 and still get the same error message!!! > :-/ > > Sorry, I am not a kernel expert... > > What's wrong? > > Thanks, > > Eric > > On 02/18/2015 04:48 PM, Éric Chamberland wrote: > > > >Le 2015-02-18 15:14, Nathan Hjelm a écrit : > >>I recommend using vader for CMA. It has code to get around the ptrace > >>setting. Run with mca_btl_vader_single_copy_mechanism cma (should be the > >>default). > >Ok, I tried it, but it gives exactly the same error message! > > > >Eric > > > >>-Nathan > >> > >>On Wed, Feb 18, 2015 at 02:56:01PM -0500, Eric Chamberland wrote: > >>>Hi, > >>> > >>>I have configured with "--with-cma" on 2 differents OS (RedHat 6.6 and > >>>OpenSuse 12.3), but in both case, I have the following error when > >>>launching > >>>a simple mpi_hello_world.c example: > >>> > >>>/opt/openmpi-1.8.4_cma/bin/mpiexec --mca btl_sm_use_cma 1 -np 2 /tmp/hw > >>>-------------------------------------------------------------------------- > >>> > >>>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: compile > >>>-------------------------------------------------------------------------- > >>> > >>>Hello world from process 0 of 2 > >>>Hello world from process 1 of 2 > >>>[compile:23874] 1 more process has sent help message > >>>help-btl-vader.txt / > >>>cma-permission-denied > >>>[compile:23874] Set MCA parameter "orte_base_help_aggregate" to 0 to > >>>see all > >>>help / error messages > >>> > >>>After I googled the subject, it seems there is a kernel parameter to > >>>modify, > >>>but I can't find it for OpenSuse 12.3 or RedHat 6.6... > >>> > >>>Here is the "config.log" issued from RedHat 6.6... > >>> > >>>http://www.giref.ulaval.ca/~ericc/ompi_bug/config.184_cma.gz > >>> > >>>Thanks, > >>> > >>>Eric > >>>_______________________________________________ > >>>users mailing list > >>>us...@open-mpi.org > >>>Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > >>>Link to this post: > >>>http://www.open-mpi.org/community/lists/users/2015/02/26339.php > > > >_______________________________________________ > >users mailing list > >us...@open-mpi.org > >Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > >Link to this post: > >http://www.open-mpi.org/community/lists/users/2015/02/26342.php > > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/02/26351.php
pgpqgDxaFnCcb.pgp
Description: PGP signature