From ANDREW.LUCAS at L3T.com Fri May 17 10:52:18 2019 From: ANDREW.LUCAS at L3T.com (ANDREW.LUCAS at L3T.com) Date: Fri, 17 May 2019 17:52:18 +0000 Subject: [Tutorial-working-group] Compiling samples question Message-ID: Hi, Firstly, thanks for showing me how to set this up in a VM. This might not even be the correct list for this.. I was trying to use the VMs to compile the samples in the OFA_Training_Package_Sept_2016. See "https://www.openfabrics.org/training-content/579/". I'm having some issues getting the ping-rdma-1 sample to compile. I was hoping that might give some indication that I had the tools installed correctly. I was wondering if I could get some clues as to what I may have configured wrong. When I run the make, I'm getting an error in "c_d_queue_pair.c:43:11: error: 'struct ibv_qp_init_attr' has no member named 'xrc_domain' init_attr->xrc_domain = NULL; Do I have a wrong package somewhere? Or are those particular tutorials just out of date now? Or meant for a different environment? Centos 7, softroce Thanks Andy ------------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dledford at redhat.com Mon May 20 09:00:41 2019 From: dledford at redhat.com (Doug Ledford) Date: Mon, 20 May 2019 12:00:41 -0400 Subject: [Tutorial-working-group] Compiling samples question In-Reply-To: References: Message-ID: <02053F10-6D62-419E-9002-351549285F26@redhat.com> > On May 17, 2019, at 1:52 PM, wrote: > > Hi, > Firstly, thanks for showing me how to set this up in a VM. You’re welcome. > This might not even be the correct list for this.. I was trying to use the VMs to compile the samples in the OFA_Training_Package_Sept_2016. See “https://www.openfabrics.org/training-content/579/”. You’re right, it’s not really the right list. But, then again, there isn’t really any list setup for this particular question at the moment, so this is as good as any. > I’m having some issues getting the ping-rdma-1 sample to compile. > I was hoping that might give some indication that I had the tools installed correctly. > I was wondering if I could get some clues as to what I may have configured wrong. > When I run the make, I’m getting an error in “c_d_queue_pair.c:43:11: error: ‘struct ibv_qp_init_attr’ has no member named ‘xrc_domain’ init_attr->xrc_domain = NULL; > > Do I have a wrong package somewhere? Or are those particular tutorials just out of date now? Or meant for a different environment? > Centos 7, softroce I think the tutorials are meant for an OFED environment, and unfortunately, the VM tutorial (and the future of RDMA packages) is veering away from OFED. My guess is that if you take a look for an upstream project for the package you are trying to compile, if that upstream package is current, then the current sources should compile. However, based upon your email, I suspect what you have is source embedded in the tutorial that is out of date and needs updating to the final upstream version of XRC support (the initial XRC support and the final XRC support where very different, and I suspect this source snippet was written long enough ago to be again the initial XRC support). The conversion of this code to the upstream API probably isn’t trivial, but if you poke around in /usr/include/infiniband/verbs.h, you will see that struct ibv_xrcd is part of ibv_srq_init_attr_ex, and that is the upstream version of xrc_domain. > > Thanks > Andy > > > ------------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving.. -- > Tutorial-working-group mailing list > Tutorial-working-group at lists.openfabrics.org > https://lists.openfabrics.org/mailman/listinfo/tutorial-working-group -- Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Message signed with OpenPGP URL: