Skip to Content.
Sympa Menu

charm - Re: [charm] disable hwloc?

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] disable hwloc?


Chronological Thread 
  • From: Evan Ramos <evan AT hpccharm.com>
  • To: Jozsef Bakosi <jbakosi AT lanl.gov>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] disable hwloc?
  • Date: Tue, 1 May 2018 18:07:23 -0500
  • Authentication-results: illinois.edu; spf=none smtp.mailfrom=evan AT hpccharm.com; dkim=pass header.d=hpccharm-com.20150623.gappssmtp.com header.s=20150623; dmarc=none

It is not possible to disable hwloc, since we rely on it to query
hardware topology and set affinities. We also cannot rely on whatever
version may be linked into OpenMPI due to potential mismatches with
our code. However, it looks like this issue may have a simple fix.
Could you test this change:


diff --git a/contrib/hwloc/include/hwloc/rename.h
b/contrib/hwloc/include/hwloc/rename.h
index 9a0c5fae5..39660f4d3 100644
--- a/contrib/hwloc/include/hwloc/rename.h
+++ b/contrib/hwloc/include/hwloc/rename.h
@@ -489,6 +489,8 @@ extern "C" {
#define hwloc_component_type_t HWLOC_NAME(component_type_t)
#define hwloc_component HWLOC_NAME(component)

+#define hwloc_linux_component HWLOC_NAME(linux_component)
+
#define hwloc_plugin_check_namespace HWLOC_NAME(plugin_check_namespace)

#define hwloc_insert_object_by_cpuset HWLOC_NAME(insert_object_by_cpuset)


If this resolves the issue, I will fix it in our tree and report it
upstream so that this commit can be partially reverted:
https://github.com/open-mpi/hwloc/commit/93abf09fee121c55b99f578d62e3ea21decdfbed

Regards,
--
Evan A. Ramos
Software Engineer
Charmworks, Inc.


On Tue, May 1, 2018 at 10:56 AM, Jozsef Bakosi
<jbakosi AT lanl.gov>
wrote:
> Hi folks,
>
> Is it possible to disable hwloc in Charm++? I'm getting:
>
> /opt/openmpi/lib/libopen-pal.a(topology-linux.o):(.data.rel.ro.local+0x40):
> multiple definition of `hwloc_linux_component'
> <charm-install-dir>/charm/bin/../lib/libhwloc_embedded.a(topology-linux.o):(.data.rel.ro.local+0x0):
> first defined here
>
> Thanks,
> Jozsef



Archive powered by MHonArc 2.6.19.

Top of Page