Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] NVCC mpi.h: error: attribute "__deprecated__" does not take arguments
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-06-18 10:30:59


Did you configure and build Open MPI with nvcc?

I ask because Open MPI should auto-detect whether the underlying compiler can handle a message argument with the deprecated directive or not.

You should be able to build Open MPI with:

    ./configure CC=nvcc ....etc.
    make clean all install

If you're building Open MPI with one compiler and then trying to compile with another (like the command line in your mail implies), all bets are off because Open MPI has tuned itself to the compiler that it was configured with.

On Jun 18, 2012, at 10:20 AM, Dmitry N. Mikushin wrote:

> Hello,
>
> With openmpi svn trunk as of
>
> Repository Root: http://svn.open-mpi.org/svn/ompi
> Repository UUID: 63e3feb5-37d5-0310-a306-e8a459e722fe
> Revision: 26616
>
> we are observing the following strange issue (see below). How do you think, is it a problem of NVCC or OpenMPI?
>
> Thanks,
> - Dima.
>
> [dmikushin_at_tesla-apc mpitest]$ cat mpitest.cu
> #include <mpi.h>
>
> __global__ void kernel() { }
>
> [dmikushin_at_tesla-apc mpitest]$ nvcc -I/opt/openmpi-trunk/include -c mpitest.cu
> /opt/openmpi-trunk/include/mpi.h(365): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(374): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(382): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(724): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(730): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(736): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(790): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(791): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1049): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1070): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1072): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1074): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1145): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1149): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1151): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1345): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1347): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1484): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1507): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1510): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1515): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1525): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1527): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1589): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1610): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1612): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1614): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1685): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1689): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1691): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1886): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(1888): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2024): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2047): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2050): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2055): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2065): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/mpi.h(2067): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/openmpi/ompi/mpi/cxx/comm.h(102): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/openmpi/ompi/mpi/cxx/win.h(90): error: attribute "__deprecated__" does not take arguments
>
> /opt/openmpi-trunk/include/openmpi/ompi/mpi/cxx/file.h(298): error: attribute "__deprecated__" does not take arguments
>
> 41 errors detected in the compilation of "/tmp/tmpxft_00004a17_00000000-4_mpitest.cpp1.ii".
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/