Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMPI header 'mpi.h' not detected if in /usr/include #4

Closed
Salamandar opened this issue Sep 21, 2018 · 13 comments
Closed

OpenMPI header 'mpi.h' not detected if in /usr/include #4

Salamandar opened this issue Sep 21, 2018 · 13 comments

Comments

@Salamandar
Copy link

On archlinux, the OpenMPI header is /usr/include/mpi.h.

pkg-config filters -I/usr/include from cflags (because it's a standard include path), so the cflags detected from ompi-cxx do NOT contain this token…

The problem is that the header detection code in CMake is :

find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} NO_DEFAULT_PATH)

The NO_DEFAULT_PATH prevents CMake from searching in /usr/include. The header is thus not found.
You just have to remove NO_DEFAULT_PATH and everything works as intended.

@ceremcem
Copy link

Wouldn't it be a nice PR?

@Salamandar
Copy link
Author

You are everywhere. :p
Yeah, will do.

@ceremcem
Copy link

I ammmmmmmmmm watchinggggggggg :P

@Salamandar
Copy link
Author

Haha :p
PR waiting !

@realthunder
Copy link
Owner

I think this is better handled upstream. That mpi.h is introduced in b765193. Maybe you can directly ask the author @ysangkok as to why NO_DEFAULT_PATH is necessary.

@ysangkok
Copy link

ysangkok commented Sep 23, 2018

I don't think it's really necessary to have nodefaultpath. I probably put it there cause I didn't think it should search paths where it won't find it anyway. I only tested on Ubuntu. Its probably harmless to expand the search path. The line is there to prevent a incomprehensible linker error, since the compiler won't complain if it can't find the header AFAIK.

@Salamandar
Copy link
Author

The line is there to prevent a incomprehensible linker error, since the compiler won't complain if it can't find the header AFAIK.

It's the compiler who will complain, not the linker ;) The linker does not have any knowledge of what a header is.

@maidenone
Copy link

Was this upstreamed? Close or merge?

@realthunder
Copy link
Owner

@Salamandar Have you submitted a PR to upstream for this? I'll merge your patch here.

@luzpaz
Copy link
Collaborator

luzpaz commented Oct 30, 2020

@Salamandar ping

@Salamandar
Copy link
Author

Hi, sorry for the disappearing. It looks like this issue is not anymore : searching for OpenMPI is done by pkg_search_module. Closing.

@luzpaz
Copy link
Collaborator

luzpaz commented Dec 14, 2020

@Salamandar ticket is still open

@Salamandar
Copy link
Author

Not anymore :)

realthunder pushed a commit that referenced this issue Sep 24, 2021
* [PartDesign] Expose WizardShaft/ strings to translation

* Correct use of double quotes

* [PD] Suggested changes in `Crowdin/pd-wizard-shaft` (#4)

* [PartDesign] Use correct method name in `WizardShaft`

Use `QtCore.QT_TRANSLATE_NOOP` instead of `QT_TRANSLATE_NOOP` because latter is
not what is imported.

* [PartDesign] Remove undesired translations in `WizardShaftTable.py`

See comments by @chennes on PR#4964.

Co-authored-by: Ajinkya Dahale <AjinkyaDahale@users.noreply.github.com>
@yahbluez yahbluez mentioned this issue Jan 18, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants