Hi, kangshiyin@xxxxxxxxx wrote (2009/04/03 10:08):
i have tried these 2 patches. the fastHHEd.patch works well, but the HHEd.c.patch seems not so good. it is even slower after this patch is used on my computer.and i find that all other programs such as HInit & HRest become slower if the -fopenmp flag is applied when compiling.my compiler is gcc4/Fedora9 is this gcc or openmp's problem? should i use icc or something else?
This sounds strange. HInit & HRest should not be affected by this modification because they have no OpenMP directives. So I believe that this is the problem of gcc4 or running environment rather than my HHEd.c.patch.
Note that you need to set the Linux environmental variable OMP_NUM_THREADS (the number of threads to be generated) to a proper value. For example, if your PC has 4 cores, OMP_NUM_THREADS should be less than 4. Otherwise, it sometimes becomes slower because of overhead while generating threads.
Best regards, Heiga ZEN (Byung Ha CHUN) -- Heiga ZEN (Byung Ha CHUN) Speech Technology Group Cambridge Research Lab Toshiba Research Europe phone: +44 1223 436975 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email ______________________________________________________________________