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.