[LLVMdev] How to Run OpenMP application Using "lli"
Duncan Sands
baldrick at free.fr
Sat Jun 16 13:12:59 PDT 2012
Hi Arnamoy,
> Now, trying to run an OpenMP hello world program.
>
> llvm-gcc -fopenmp p_hello.c -flto -S -o p_hello.ll
> lli p_hello.ll
>
> output: LLVM ERROR: Program used external function 'GOMP_parallel_start' which
> could not be resolved!
>
> I am guessing that I have to link libgomp.a somehow but want to know the correct
> way to do it.
you can load shared libraries into lli using -load, so if you have libgomp.so
then try
lli -load=libgomp.so p_hello.ll
Ciao, Duncan.
More information about the llvm-dev
mailing list