[LLVMdev] ExecutionEngine and multithreading
brdavs
brdavs at yahoo.com
Mon Apr 14 09:18:59 PDT 2008
Hi,
I have a question regarding
ExecutionEngine on multicore machines.
Say I have n different Function objects
that I want to execute simultaneously on a multicore
machine. So, one would want to create n different
instances of ExecutionEngine and run each function.
But, if I understand correctly, there can only be one
instance of ExecutionEngine, so there would have to be
a locking mechanism or execute everything
sequentially.
I have the following questions:
1. What's the best way to run many different functions
in multiple threads using a single ExecutionEngine?
2. What's the reason for having only a single engine?
3. Are there any plans for the future that might
allow multiple instances of ExecutionEngine?
Marko
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the llvm-dev
mailing list