Displaying 1 result from an estimated 1 matches for "p_hello".
Did you mean:
hello
2012 Jun 16
1
[LLVMdev] How to Run OpenMP application Using "lli"
Hi;
Both -fplugin-arg-dragonegg-emit-ir and -flto works for creating llvm
bitcode that can be run with lli. Thanks to Nick for the suggestion.
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.
Other way around using gcc:
llvm-gcc -fopenmp p_he...