LIKWID environment variables

LIKWID environment variables

by Jonka Winkle -
Number of replies: 1

Dear Mr Hager,

according to the current assignment, we should make use of

$ icx $LIKWID_INC -O3 -xHost -fno-alias $LIKWID_LIB -DLIKWID_PERFMON source.c timing.o -llikwid

where source.c contains the code. Is there any option to get it running with multi-file projects? I tried including my headers with wildcards (./include/*.h) into the command above, but then I got compiler errors telling me that the header files could not be found:

./src/ex05_1.c:1:10: fatal error: 'ex05.h' file not found
#include "ex05.h"
        ^~~~~~~~


In reply to Jonka Winkle

Re: LIKWID environment variables

by Nils Eiling -
 Dear Jonka,

I think you need the command flag:

-I <dir>                Add directory to the end of the list of include search paths

$ icx $LIKWID_INC -O3 -xHost -fno-alias $LIKWID_LIB -DLIKWID_PERFMON source.c timing.o -llikwid -I ./include