[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:01936] Re: Fast & memory efficient HHEd clustering patch


hi,
 
thank you all.
 
i forgot the option '-O2'. i didn't realized it was overwritten when CFLAGS is specified by hand.
 
the clustering process is about 5% faster than before.
 
 

2009/4/6 Junichi Yamagishi <jyamagis@xxxxxxxxxxxx>
Hi,

In my environment, this works perfectly fine.
Although I have checked actual speed, it would be much faster.

I used icc and OMP_NUM_THREADS is set to 4.

FYI, please create Makefiles like this and recompile all tools

ICC:  ./configure CC=icc F77=ifort CFLAGS="-O2 -static-intel -openmp" FFLAGS="-O2 -static-intel -openmp"

GCC: ./configure CFLAGS="-O2 -fopenmp" FFLAGS="-O2 -fopenmp"


Please note that you should include '-O2' as welll as '-fopenmp',
otherwise your binary does not have any optimization process.

Regards,
Junichi Yamagishi
CSTR



On 6 Apr 2009, at 00:48, Heiga ZEN (Byung Ha CHUN) wrote:

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 ______________________________________________________________________




--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.






--
康世胤
Shiyin Kang

kangshiyin@xxxxxxxxx
Mobile: (+86)13810352340
Tel: (+8610)62775251

FIT 3-522
Lab of Human-Computer Speech Interaction,
Department of Computer Science & Technology,
Tsinghua University,Beijing, P.R.China, 100084

References
[hts-users:01875] Re: Fast & memory efficient HHEd clustering patch, Heiga Zen (Byung Ha CHUN)
[hts-users:01933] Re: Fast & memory efficient HHEd clustering patch, 康世胤
[hts-users:01934] Re: Fast & memory efficient HHEd clustering patch, Heiga ZEN (Byung Ha CHUN)
[hts-users:01935] Re: Fast & memory efficient HHEd clustering patch, Junichi Yamagishi