linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* building RDMA perftests with g++
@ 2010-11-18  3:20 ib-x2spCj9RiN0z5UmgcLIfJQ
       [not found] ` <20101117202015.rs5zkzhbkskwsw4s-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: ib-x2spCj9RiN0z5UmgcLIfJQ @ 2010-11-18  3:20 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

I have what is probably a silly question....

If I compile the rdma_bw example from perftests with g++, it doesn't  
work... granted I have to make a few changes wrt structure  
initialization, but I would think it should behave as when built with  
gcc...  I am getting an error message in pp_client_init/pp_server_init  
that ai_family SOCK_STREAM is not support for the port.  If I use cma  
I get an unrecognized event on the client side... Am I missing  
something?  I am trying to develop some C++ classes with RDMA/verbs.
Thanks,
Ed


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found] ` <20101117202015.rs5zkzhbkskwsw4s-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
@ 2010-11-18 10:31   ` Ido Shamai
       [not found]     ` <4CE5009F.90001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Ido Shamai @ 2010-11-18 10:31 UTC (permalink / raw)
  To: ib-x2spCj9RiN0z5UmgcLIfJQ; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hey Ed ,

I'm Ido , perftest maintainer , I will check the issue now , and report you back.

In general , every c program can be compiled with g++ ?

Ido

On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
> I have what is probably a silly question....
>
> If I compile the rdma_bw example from perftests with g++, it doesn't work... granted I have to make a few changes wrt structure initialization, but I would think it should behave as when built with gcc...  I am getting an error message in pp_client_init/pp_server_init that ai_family SOCK_STREAM is not support for the port.  If I use cma I get an unrecognized event on the client side... Am I missing something?  I am trying to develop some C++ classes with RDMA/verbs.
> Thanks,
> Ed
>
>
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found]     ` <4CE5009F.90001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2010-12-01 16:24       ` ib-x2spCj9RiN0z5UmgcLIfJQ
       [not found]         ` <20101201092419.5r5mqsv1cg8cso0w-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: ib-x2spCj9RiN0z5UmgcLIfJQ @ 2010-12-01 16:24 UTC (permalink / raw)
  To: Ido Shamai; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Ido,
Have you had opportunity to check into this?
Ed

Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:

> Hey Ed ,
>
> I'm Ido , perftest maintainer , I will check the issue now , and report
> you back.
>
> In general , every c program can be compiled with g++ ?
>
> Ido
>
> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>> I have what is probably a silly question....
>>
>> If I compile the rdma_bw example from perftests with g++, it   
>> doesn't work... granted I have to make a few changes wrt structure   
>> initialization, but I would think it should behave as when built   
>> with gcc...  I am getting an error message in   
>> pp_client_init/pp_server_init that ai_family SOCK_STREAM is not   
>> support for the port.  If I use cma I get an unrecognized event on   
>> the client side... Am I missing something?  I am trying to develop   
>> some C++ classes with RDMA/verbs.
>> Thanks,
>> Ed
>>
>>
>> -- 
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found]         ` <20101201092419.5r5mqsv1cg8cso0w-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
@ 2011-05-17 19:55           ` ib-x2spCj9RiN0z5UmgcLIfJQ
       [not found]             ` <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: ib-x2spCj9RiN0z5UmgcLIfJQ @ 2011-05-17 19:55 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Has this issue been confirmed or debunked?

Ed


Quoting ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org:

> Ido,
> Have you had opportunity to check into this?
> Ed
>
> Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>
>> Hey Ed ,
>>
>> I'm Ido , perftest maintainer , I will check the issue now , and report
>> you back.
>>
>> In general , every c program can be compiled with g++ ?
>>
>> Ido
>>
>> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>> I have what is probably a silly question....
>>>
>>> If I compile the rdma_bw example from perftests with g++, it    
>>> doesn't work... granted I have to make a few changes wrt structure  
>>>   initialization, but I would think it should behave as when built  
>>>   with gcc...  I am getting an error message in    
>>> pp_client_init/pp_server_init that ai_family SOCK_STREAM is not    
>>> support for the port.  If I use cma I get an unrecognized event on  
>>>   the client side... Am I missing something?  I am trying to   
>>> develop  some C++ classes with RDMA/verbs.
>>> Thanks,
>>> Ed
>>>
>>>
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found]             ` <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
@ 2011-05-17 20:03               ` frank zago
       [not found]                 ` <4DD2D4A7.5090101-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: frank zago @ 2011-05-17 20:03 UTC (permalink / raw)
  To: ib-x2spCj9RiN0z5UmgcLIfJQ; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 05/17/2011 02:55 PM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
> Has this issue been confirmed or debunked?

AFAIK, this style of initialization is not supported by C++.

        struct addrinfo hints = {
                .ai_family   = AF_UNSPEC,
                .ai_socktype = SOCK_STREAM
        };

If you want to use a c++ compiler, you'll have to change the code. Something like
  struct addrinfo hints = { 0 };
  hints.ai_family   = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;

Frank.


> 
> Ed
> 
> 
> Quoting ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org:
> 
>> Ido,
>> Have you had opportunity to check into this?
>> Ed
>>
>> Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>>
>>> Hey Ed ,
>>>
>>> I'm Ido , perftest maintainer , I will check the issue now , and report
>>> you back.
>>>
>>> In general , every c program can be compiled with g++ ?
>>>
>>> Ido
>>>
>>> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>>> I have what is probably a silly question....
>>>>
>>>> If I compile the rdma_bw example from perftests with g++, it   doesn't work... granted I have to make a few changes wrt structure   initialization, but I would think it should behave as when built   with gcc...  I am getting an error message in   pp_client_init/pp_server_init that ai_family SOCK_STREAM is not   support for the port.  If I use cma I get an unrecognized event on   the client side... Am I missing something?  I am trying to  develop  some C++ classes with RDMA/verbs.
>>>> Thanks,
>>>> Ed
>>>>
>>>>
>>>> -- 
>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>
>>>
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found]                 ` <4DD2D4A7.5090101-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
@ 2011-05-17 20:09                   ` ib-x2spCj9RiN0z5UmgcLIfJQ
       [not found]                     ` <20110517140952.qf0bmi5yg48c4gsg-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: ib-x2spCj9RiN0z5UmgcLIfJQ @ 2011-05-17 20:09 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

That is correct.  I did make those necessary corrections.

E

Quoting frank zago <fzago-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>:

> On 05/17/2011 02:55 PM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>> Has this issue been confirmed or debunked?
>
> AFAIK, this style of initialization is not supported by C++.
>
>         struct addrinfo hints = {
>                 .ai_family   = AF_UNSPEC,
>                 .ai_socktype = SOCK_STREAM
>         };
>
> If you want to use a c++ compiler, you'll have to change the code.   
> Something like
>   struct addrinfo hints = { 0 };
>   hints.ai_family   = AF_UNSPEC;
>   hints.ai_socktype = SOCK_STREAM;
>
> Frank.
>
>
>>
>> Ed
>>
>>
>> Quoting ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org:
>>
>>> Ido,
>>> Have you had opportunity to check into this?
>>> Ed
>>>
>>> Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>>>
>>>> Hey Ed ,
>>>>
>>>> I'm Ido , perftest maintainer , I will check the issue now , and report
>>>> you back.
>>>>
>>>> In general , every c program can be compiled with g++ ?
>>>>
>>>> Ido
>>>>
>>>> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>>>> I have what is probably a silly question....
>>>>>
>>>>> If I compile the rdma_bw example from perftests with g++, it     
>>>>> doesn't work... granted I have to make a few changes wrt   
>>>>> structure   initialization, but I would think it should behave   
>>>>> as when built   with gcc...  I am getting an error message in     
>>>>> pp_client_init/pp_server_init that ai_family SOCK_STREAM is not   
>>>>>   support for the port.  If I use cma I get an unrecognized  
>>>>> event  on   the client side... Am I missing something?  I am  
>>>>> trying to   develop  some C++ classes with RDMA/verbs.
>>>>> Thanks,
>>>>> Ed
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>>
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: building RDMA perftests with g++
       [not found]                     ` <20110517140952.qf0bmi5yg48c4gsg-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
@ 2011-05-18  7:01                       ` Ido Shamai
  0 siblings, 0 replies; 7+ messages in thread
From: Ido Shamai @ 2011-05-18  7:01 UTC (permalink / raw)
  To: ib-x2spCj9RiN0z5UmgcLIfJQ; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 5/17/2011 11:09 PM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
> That is correct.  I did make those necessary corrections.
>
> E

I've seen the problem back then (when you originally posted it) and had no good answer.

If you can me the changes you already made on the code, I would be happy to help.

Ido

>
> Quoting frank zago <fzago-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>:
>
>> On 05/17/2011 02:55 PM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>> Has this issue been confirmed or debunked?
>>
>> AFAIK, this style of initialization is not supported by C++.
>>
>>         struct addrinfo hints = {
>>                 .ai_family   = AF_UNSPEC,
>>                 .ai_socktype = SOCK_STREAM
>>         };
>>
>> If you want to use a c++ compiler, you'll have to change the code.  Something like
>>   struct addrinfo hints = { 0 };
>>   hints.ai_family   = AF_UNSPEC;
>>   hints.ai_socktype = SOCK_STREAM;
>>
>> Frank.
>>
>>
>>>
>>> Ed
>>>
>>>
>>> Quoting ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org:
>>>
>>>> Ido,
>>>> Have you had opportunity to check into this?
>>>> Ed
>>>>
>>>> Quoting Ido Shamai <idos-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>:
>>>>
>>>>> Hey Ed ,
>>>>>
>>>>> I'm Ido , perftest maintainer , I will check the issue now , and report
>>>>> you back.
>>>>>
>>>>> In general , every c program can be compiled with g++ ?
>>>>>
>>>>> Ido
>>>>>
>>>>> On 11/18/2010 5:20 AM, ib-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org wrote:
>>>>>> I have what is probably a silly question....
>>>>>>
>>>>>> If I compile the rdma_bw example from perftests with g++, it    doesn't work... granted I have to make a few changes wrt  structure   initialization, but I would think it should behave  as when built   with gcc...  I am getting an error message in    pp_client_init/pp_server_init that ai_family SOCK_STREAM is not    support for the port.  If I use cma I get an unrecognized event  on   the client side... Am I missing something?  I am trying to   develop  some C++ classes with RDMA/verbs.
>>>>>> Thanks,
>>>>>> Ed
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>>>
>>>>>
>>>>> -- 
>>>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>>
>>> -- 
>>> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>>
>
>
>
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-18  7:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18  3:20 building RDMA perftests with g++ ib-x2spCj9RiN0z5UmgcLIfJQ
     [not found] ` <20101117202015.rs5zkzhbkskwsw4s-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2010-11-18 10:31   ` Ido Shamai
     [not found]     ` <4CE5009F.90001-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2010-12-01 16:24       ` ib-x2spCj9RiN0z5UmgcLIfJQ
     [not found]         ` <20101201092419.5r5mqsv1cg8cso0w-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-17 19:55           ` ib-x2spCj9RiN0z5UmgcLIfJQ
     [not found]             ` <20110517135503.1jnew49yc8co08k8-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-17 20:03               ` frank zago
     [not found]                 ` <4DD2D4A7.5090101-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
2011-05-17 20:09                   ` ib-x2spCj9RiN0z5UmgcLIfJQ
     [not found]                     ` <20110517140952.qf0bmi5yg48c4gsg-x2spCj9RiN0z5UmgcLIfJQ@public.gmane.org>
2011-05-18  7:01                       ` Ido Shamai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).