Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [hwloc-users] Single hwloc.h header files that work on linux and windows
From: Rolf vandeVaart (rvandevaart_at_[hidden])
Date: 2013-01-03 16:29:59

I have an application is supposed to work with both windows and linux. To that end, I downloaded hwloc, configured and then included the hwloc header files in my application. I dynamically load the library and map the functions I need. If is not there, then I can still run but give a warning. However, I have run into a problem. hwloc.h includes a whole bunch of other headers, one of which is config.h. And config.h is specific to how the library was configured. Therefore, when I attempt to compile my application on windows, I get an error about missing pthread.h file. This is probably one of many differences.

Is there a special hwloc.h and supporting headers that is system independent so I can include them and build on both windows and linux? Or do I need to have two different sets of header files, one for linux and one for windows? Perhaps I just need a config.h for windows and one for linux and select them at build time.


This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.