apc-llc / likwid

Lightweight performance tools
https://code.google.com/p/likwid/
GNU General Public License v3.0
1 stars 0 forks source link

ICC and MIC compiling issue #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. changed both ICC and MIC in config.mk and tried generating bin files. I get 
the following error while linking.

What is the expected output? What do you see instead?

===>  LINKING  likwid-perfctr
@icc -O1 -Wno-format -vec-report=0 -strict-ansi -std=c99  -D_GNU_SOURCE 
-DMAX_NUM_THREADS=128 -DPAGE_ALIGNMENT=4096 -DVERSION=3 -DRELEASE=1 
-DCFGFILE=/home/snataraj/likwid.cfg -DMAX_NUM_THREADS=256 -DMAX_NUM_NODES=4 
-DHASH_TABLE_SIZE=20 -DLIBLIKWIDPIN=/home/snataraj/local/lib/liblikwidpin.so 
-DLIKWIDFILTERPATH=/home/snataraj/local/share/likwid -DCOLOR=BLUE 
-DHAS_MEMPOLICY -DHAS_RDTSCP -DHAS_SCHEDAFFINITY 
-DACCESSDAEMON=/home/snataraj/local/bin/likwid-accessD -DACCESSMODE=0  
-I./src/includes  -I./ICC -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -pthread
./ICC/hashTable.o: In function `hashTable_get':
./src/hashTable.c:(.text+0x53): undefined reference to `g_str_hash'
./src/hashTable.c:(.text+0x58): undefined reference to `g_str_equal'
./src/hashTable.c:(.text+0x64): undefined reference to `g_hash_table_new'
./src/hashTable.c:(.text+0x89): undefined reference to `g_hash_table_lookup'
./src/hashTable.c:(.text+0xeb): undefined reference to `g_strdup'
./src/hashTable.c:(.text+0xfa): undefined reference to `g_hash_table_insert'
./ICC/hashTable.o: In function `hashTable_finalize':
./src/hashTable.c:(.text+0x147): undefined reference to `g_str_hash'
./src/hashTable.c:(.text+0x14c): undefined reference to `g_str_equal'
./src/hashTable.c:(.text+0x15b): undefined reference to `g_hash_table_new'
./src/hashTable.c:(.text+0x17d): undefined reference to `g_hash_table_size'
./src/hashTable.c:(.text+0x2d9): undefined reference to `g_hash_table_iter_init'
./src/hashTable.c:(.text+0x2ec): undefined reference to `g_hash_table_iter_next'
./src/hashTable.c:(.text+0x307): undefined reference to `g_hash_table_lookup'
./src/hashTable.c:(.text+0x349): undefined reference to `g_strdup'
./src/hashTable.c:(.text+0x35f): undefined reference to `g_hash_table_insert'
./src/hashTable.c:(.text+0x3d6): undefined reference to `g_hash_table_iter_next'
make: *** [likwid-perfctr] Error 1

What version of the product are you using?
icc intel composer xe 2013

Please provide any additional information below.

Original issue reported on code.google.com by sur...@gmail.com on 26 Nov 2013 at 5:51

GoogleCodeExporter commented 9 years ago
Hi,

that is really my fault. I switched to glib for the hash table in the Marker 
API. That is actually a bad idea as there is no glib on Intel Xeon Phi. I will 
quickly fix that and have an internal hash table implementation again. Till 
then the HG head cannot be used with Intel Xeon Phi. Sorry for that.

Original comment by jan.trei...@gmail.com on 26 Nov 2013 at 7:45

GoogleCodeExporter commented 9 years ago
Thank you...looking forward for the patch soon.

Original comment by sur...@gmail.com on 26 Nov 2013 at 8:23

GoogleCodeExporter commented 9 years ago
The current HEAD has no glib dependency anymore and should compile again on 
Intel Xeon Phi. 

Original comment by jan.trei...@gmail.com on 26 Dec 2013 at 9:10