Opened 13 years ago

Closed 11 years ago

#33803 closed defect (worksforme)

openmpi @1.5.5 +gcc46+threads - build error (cuda in /usr/local)

Reported by: srinath@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: openmpi

Description (last modified by ryandesign (Ryan Carsten Schmidt))

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/openmpi/work/openmpi-1.5.5/ompi/contrib/vt/vt/vtlib/vt_cudartwrap.c:1378:14: error: conflicting types for 'cudaPointerGetAttributes'
cudaError_t  cudaPointerGetAttributes(struct cudaPointerAttributes *attributes, void *ptr)
             ^
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/openmpi/work/openmpi-1.5.5/ompi/contrib/vt/vt/vtlib/vt_cudartwrap.c:13:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/openmpi/work/openmpi-1.5.5/ompi/contrib/vt/vt/vtlib/vt_cudartwrap.h:25:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/openmpi/work/openmpi-1.5.5/ompi/contrib/vt/vt/vtlib/vt_cuda_runtime_api.h:20:
/usr/local/cuda/include/cuda_runtime_api.h:3899:39: note: previous declaration is here
extern __host__ cudaError_t CUDARTAPI cudaPointerGetAttributes(struct cudaPointerAttributes *attributes, const void *ptr);
                                      ^
1 error generated.
make[5]: *** [vt_cudartwrap.lo] Error 1

Attachments (1)

main.log (116.1 KB) - added by srinath@… 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by srinath@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: openmpi added

Remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port so that they see the ticket.

comment:2 Changed 13 years ago by srinath@…

I now see that : /usr/local/cuda/include/cuda_runtime_api.h

extern __host__ cudaError_t CUDARTAPI cudaPointerGetAttributes(struct cudaPointerAttributes *attributes, const void *ptr);

but the api from nvidia does not have "const" for the second argument.

I hope this helps.

comment:3 Changed 13 years ago by srinath@…

The bug is on the openmpi end. Seems that they released openmpi 1.5.5 months after Cuda 4.1 was released, but Openmpi using cuda 4.0. Bad form.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Summary: openmpi @1.5.5 +gcc46+threads - build error (cuda)openmpi @1.5.5 +gcc46+threads - build error (cuda in /usr/local)

comment:5 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: worksforme
Status: newclosed

I have cuds installed and this doesn't seem to be an error anymore.

Note: See TracTickets for help on using tickets.