Hi,
 
The commands are as follows. Their ouptut attached.
 
$./configure --prefix=/XYZ/hwloc-0.9.2/Installation_Dir/ | tee config.out
$make | tee make.out
$make install | tee mke-install.out
 
hwloc seems to have installed correctly. But I was unable to run the programs in the test folder.
 
Specifically, ran the following commands.
 

CFLAGS += $(pkg-config --cflags hwloc)

LDLIBS += $(pkg-config --libs hwloc)

cc hwloc-hello.c $(CFLAGS) -o hwloc-hello $(LDLIBS)

 

 

 
PKG_CONFIG_PATH didn't have the hwloc path defined. Hence used
pkg-config -define-variable=VARIABLENAME=VARIABLEVALUE
to specify the directory in which hwloc.pc exists.
 
Getting the following errors when I try to compile hwloc_bind.c
 
cc hwloc_bind.c $(CFLAGS) -o hwloc-hello $(LDLIBS)
-bash: CFLAGS: command not found
-bash: LDLIBS: command not found
hwloc_bind.c:10:19: error: hwloc.h: No such file or directory
hwloc_bind.c:11:28: error: private/config.h: No such file or directory
hwloc_bind.c:14: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚topology‚
hwloc_bind.c:24: error: expected ‚)‚ before ‚cpuset‚
hwloc_bind.c: In function ‚main‚:
hwloc_bind.c:44: error: ‚hwloc_cpuset_t‚ undeclared (first use in this function)
hwloc_bind.c:44: error: (Each undeclared identifier is reported only once
hwloc_bind.c:44: error: for each function it appears in.)
hwloc_bind.c:44: error: expected ‚;‚ before ‚set‚
hwloc_bind.c:45: error: ‚hwloc_obj_t‚ undeclared (first use in this function)
hwloc_bind.c:45: error: expected ‚;‚ before ‚obj‚
hwloc_bind.c:48: error: ‚topology‚ undeclared (first use in this function)
hwloc_bind.c:51: error: ‚obj‚ undeclared (first use in this function)
hwloc_bind.c:52: error: ‚set‚ undeclared (first use in this function)
hwloc_bind.c:67: error: ‚HWLOC_CPUBIND_STRICT‚ undeclared (first use in this function)
Essentially seems like it's not able to link or include hwloc.h and the method definitions.
 
Can you please help in this matter.
- How to get this running.
- How to compile and run a sample hwloc program.
 
Thank you very much.
 
With regards,
Sanket
 
 

 


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.