From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,20a4fafff18f08ca,start X-Google-Attributes: gid111c93,public From: Paavo Hartikainen Subject: How to 'install' the CPML - and why? Date: 1999/06/05 Message-ID: #1/1 X-Deja-AN: 485877220 X-Sender: pahartik@simpukka Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: SAUNALAHDEN SERVERIN asiakas Mime-Version: 1.0 Reply-To: Paavo Hartikainen Newsgroups: comp.os.linux.alpha I decided to post this message as I have not found any documentation about getting CPML installed. Hopefully this helps someone. :) To get Compaq Portable Math Library or general information about it, look at 'http://www.unix.digital.com/linux/cpml.htm'. After looking at various documents and asking around some, I managed to get libcpml installed. It was not really all that difficult but I was not even sure if 'ld' was the right tool for this. I have never used 'ld' manually as 'gcc' or 'egcc' has done all that automatically. Another completely new thing to me was 'ar'. If I did something wrong, please make corrections. This is basically how I did it: mv cpml.0.1.tar.gz /usr/src/ cd /usr/src/ tar -xzvf cpml.0.1.tar.gz cd cpml.0.1/ less README ar -x libcpml.a ld -shared -o libcpml.so *.o strip libcpml.so mv /lib/libm-2.0.7.so /lib/original_libm-2.0.7.so mv libcpml.so /bin/libm-2.0.7.so mv cpml.h /usr/include/ These are rough figures of performance increase that libcpml gives, compared to libm performance. Test program was highly floating point intensive (and it shows)... I wonder what this would look like if I had 256 KB of external cache installed, instead of none. CPU is DECchip 21066 at 166 MHz. Performance of setiathome with libm: from 42.351471% to 43.795975% (=1.444504%) real 98m59.366s user 98m29.390s sys 0m8.154s from 46.461174% to 47.247684% (=0.78651%) real 54m49.109s user 53m53.102s sys 0m12.188s Performance of setiathome with libcpml: from 43.795975% to 46.461174% (=2.665199%) real 87m50.483s user 86m36.263s sys 0m15.474s from 47.247684% to 48.941975% (=1.694291%) real 56m28.780s user 55m31.695s sys 0m12.246s Ok, what does all this mean? Seti@home client was about twice as fast on looking for data sent by someone out there, when libm was replaced by libcpml. -- "pienena / Paavo "Rainbow Rat" Hartikainen minusta / E-mail: pahartik@sci.fi tulee / URL: http://www.sci.fi/~pahartik/ rotta" / EFnet: pahartik at #Atari and #LionKing