From: DiskMan <nobody@thewheel.com>
Subject: Re: g++ optimisations in AlphaLinux
Date: Tue, 29 Nov 2005 03:08:44 GMT [thread overview]
Message-ID: <pan.2005.11.29.03.08.40.762859@thewheel.com> (raw)
In-Reply-To: slrndon5jr.fru.Ivan.Reid@loki.brunel.ac.uk
Well I have a later 'decrypted' version at the following address:
ftp://southkc.net/linux-related/programming/compilers/compaq-6.5.9
They 'were' encrypted but removed it for easier installing and
what not after backup...
Another thing, before running "create-comp-config.sh" update your links
lrwxrwxrwx 1 root root 11 Jul 4 01:34 as -> /usr/bin/as
lrwxrwxrwx 1 root root 12 Jul 4 01:34 ccc -> lnxcc_driver
lrwxrwxrwx 1 root root 58 Oct 17 20:17 collect2 -> /usr/lib/gcc-lib/alphapca56-alpha-linux-gnu/3.2.3/collect2
-rw-r--r-- 1 root root 515 Oct 17 20:17 comp.config
lrwxrwxrwx 1 root root 8 Jul 4 01:34 cpp -> /lib/cpp
-rwxr-xr-x 1 root root 15691 May 30 2002 create-comp-config.sh
-rw-r--r-- 1 root root 5518 Feb 28 2005 create-comp-config.sh.tar.gz
lrwxrwxrwx 1 root root 15 Jul 4 01:34 crt1.o -> /usr/lib/crt1.o
lrwxrwxrwx 1 root root 61 Oct 17 20:17 crtbegin.o -> /usr/lib/gcc-lib/alphapca56-alpha-linux-gnu/3.2.3//crtbegin.o
lrwxrwxrwx 1 root root 59 Oct 17 20:17 crtend.o -> /usr/lib/gcc-lib/alphapca56-alpha-linux-gnu/3.2.3//crtend.o
lrwxrwxrwx 1 root root 15 Jul 4 01:34 crti.o -> /usr/lib/crti.o
lrwxrwxrwx 1 root root 15 Jul 4 01:34 crtn.o -> /usr/lib/crtn.o
-rw-r--r-- 1 root root 646 May 30 2002 __DECC_include_epilogue.h
-rw-r--r-- 1 root root 856 May 30 2002 __DECC_include_prologue.h
-rw-r--r-- 1 root root 1822 Jul 2 01:25 FILE_LOCATIONS
lrwxrwxrwx 1 root root 16 Jul 4 01:34 gcrt1.o -> /usr/lib/gcrt1.o
-rwxr-xr-x 1 root root 5080 Feb 24 2005 hello
-rw-r--r-- 1 root root 197 Aug 5 10:41 hello.c
lrwxrwxrwx 1 root root 58 Oct 17 20:17 ld -> /usr/lib/gcc-lib/alphapca56-alpha-linux-gnu/3.2.3/collect2
-rwxr-xr-x 1 root root 11458432 May 30 2002 lnxcc
-rwxr-xr-x 1 root root 307880 May 30 2002 lnxcc_driver
-rwxr-xr-x 1 root root 12504 May 30 2002 probe_linux.sh
-rwxr-xr-x 1 root root 9034 May 30 2002 protect_headers_setup.sh
-rw-r--r-- 1 root root 362 Jul 4 01:25 straighten-links
You may notice, I now have the symbolic links pointing to the updated
version of GLIBC and the compiler I wish to use GCC-3.2.3. You can get it
to work with later versions of GCC but you will have to mod the
"create-comp-config.sh" file so that it won't generate too many warnings
and the like. I've managed to get it to run with GCC-4.0.1 but I 'rolled'
back to GCC-3.2.3 for various reasons...
After setting up your symbolic links then run the following command:
./create-comp-config.sh ccc-6.5.9.001-6 \
/usr/lib/gcc-lib/alphapca56-alpha-linux-gnu/3.2.3
This will configure CCC/CXX to work with GCC-3.2.3 [change to the
version of GCC you're wanting to use... Also 'adjust' a couple of your
symbolic links].
Once you're finished with that, you can test it out on various programs.
I would advise using the CFLAG -std and CXXFLAG -std ansi so that Compaq
C won't be so restrictive.
Now, if you receive a lot of errors concerning GLIBC headers, parsing
errors mainly, you may need the GLIBC/Compaq C patch. I have one for
GLIBC-2.3.2 that works pretty good. I'm able to compile a large chunk of
my system with Compaq C...
I hope this has helped you out... Will L G
On Mon, 28 Nov 2005 23:45:00 +0000, Dr Ivan D. Reid wrote:
> On Mon, 28 Nov 2005 21:09:07 GMT, DiskMan <nobody@thewheel.com>
> wrote in <pan.2005.11.28.21.08.59.560447@thewheel.com>:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>
>> I cannot believe they finally went back to 'open source' with Seti@home
>> again... They used to do it some time ago but had issues with ppl trying
>> 'tweak' the code and sending in bad work units...
>
> In some respects that's covered by taking the median value of
> performance returned and discarding the highs and lows, but I can see that
> it could still be a problem.
>
>> Yea, Compaq C would be the best bet for speed and performance. On the
>> Alpha, not much can come close... Hey, when you finish porting it over,
>> please drop us a line as to where we can down load that mutha... I've been
>> running seti@home [non-open source] version for sometime and wouldn't mind
>> a boost in speed!
>
> I would gladly, but I've run into a few "issues". AFAICT I've got
> the latest unencrypted versions of everything (but the versioning is a
> mess, as regards out-of-date stuff still being available on out-of-date
> websites). Ran into some problems with ccc that I think I solved with the
> help of http://www.physik.tu-cottbus.de/~george/unix/ccc.html -- in the
> end the bit about gcc -V $GCC_VER I solved by commenting out the "-V
> $GCC_VER"... However, when I tried installing cxx I find errors like
>
> ===
> /usr/lib/compaq/cxx-6.5.9.20/alpha-linux/bin/lnxexx -V
> This beta test software has expired.
> Please contact Compaq to receive a more recent version.
> Compaq C++ V6.5-020 for linux
> Compiler Driver V6.5-020 (cxx) cxx Driver
>
> cat /usr/lib/compaq/cxx-6.5.9.20/alpha-linux/bin/.version
> Installed as cxx-6.5.9.20
> 3.1
>
> Testing linker demangler support
>
> /usr/bin/ld: unknown demangling style `compaq'collect2: ld returned 1 exit status
> Aborting
>
> If you can correct the problem, you can rerun this script manually
> by entering a command in the following format:
>
> create-comp-config.sh cxx-version [gcc-path]
>
> The current invocation of create-comp-config.sh was:
>
> /usr/lib/compaq/cxx-6.5.9.20/alpha-linux/bin/create-comp-config.sh cxx-6.5.9.20
> dpkg: error processing cxx (--configure):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> cxx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> ===
>
> When I tried installing their binutils I got a message that I was
> reverting to an earlier version -- and still got the demangling error.
>
> I won't have meuch time to play with it after this week, but I may
> be able to pick up another SCSI disk next week, to try CentOs again on SCSI
> without wiping the Debian install. If I don't get the Compaq compilers
> working, the next step is gcc 4.x -- that'll give me Fortran 95 too!
>
>> On Sun, 27 Nov 2005 11:03:46 +0000, Dr Ivan D. Reid wrote:
>>
>>> Now that I have Debian Sarge running on my PWS500a, I've been porting
>>> seti@home to the machine. The performance has been disappointing; the
>>> standard test work-unit is going to take around 60 hours to complete. boinc
>>> benchmarks report:
>>>
>>> 2005-11-27 11:00:51 [---] Running CPU benchmarks
>>> 2005-11-27 11:01:50 [---] Benchmark results:
>>> 2005-11-27 11:01:50 [---] Number of CPUs: 1
>>> 2005-11-27 11:01:50 [---] 153 double precision MIPS (Whetstone) per CPU
>>> 2005-11-27 11:01:50 [---] 555 integer MIPS (Dhrystone) per CPU
>>> 2005-11-27 11:01:50 [---] Finished CPU benchmarks
>>>
>>> I got gprof running and noticed a few things like:
>>> o much of the time is spent in calculating log-gamma functions. These
>>> do a lot of casting to and from single-precision parameters/results.
>>> o the total time that gprof reports is only about 1/3rd the cpu time charged
>>> to the programme by top (e.g. a 39618-second run only totalled up 11376 seconds
>>> of profile time). Since this is unlikely to be profiler overhead, I'm
>>> wondering if it's due to unaligned access or double/float conversion causing
>>> execution problems.
>>>
>>> Can anyone suggest which g++ options [g++ (GCC) 3.3.5
>>> (Debian 1:3.3.5-13)] might improve the performance? I've been looking for
>>> flags to control alignment of floats, or promote all floats to doubles,
>>> but I haven't found anything yet.
>>>
>>> Please cross-post this if you know of a better group to ask in.
>>
next prev parent reply other threads:[~2005-11-29 3:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-27 11:03 g++ optimisations in AlphaLinux Dr Ivan D. Reid
2005-11-27 12:35 ` Måns Rullgård
2005-11-27 13:33 ` Dr Ivan D. Reid
2005-11-27 14:10 ` Dr Ivan D. Reid
2005-11-27 14:55 ` Måns Rullgård
2005-11-27 15:50 ` Dr Ivan D. Reid
2005-11-27 16:39 ` Måns Rullgård
2005-11-27 17:07 ` Dr Ivan D. Reid
2005-11-27 17:39 ` Måns Rullgård
2005-11-28 21:09 ` DiskMan
2005-11-28 23:45 ` Dr Ivan D. Reid
2005-11-29 3:08 ` DiskMan [this message]
2005-11-29 7:57 ` Dr Ivan D. Reid
2005-11-30 23:30 ` DiskMan
2005-12-01 15:14 ` Dr Ivan D. Reid
2005-12-01 17:18 ` DiskMan
2005-12-01 18:01 ` Staffan Tjernstrom
2005-12-01 18:51 ` DiskMan
2005-12-02 8:12 ` Dr Ivan D. Reid
2005-12-03 1:25 ` There is a Compaq C build of Setiathome_boinc DiskMan
2005-12-05 11:44 ` Dr Ivan D. Reid
2005-12-12 2:37 ` Dr Ivan D. Reid
2005-12-15 9:02 ` DiskMan
2005-12-16 11:00 ` Dr Ivan D. Reid
2005-12-16 19:12 ` DiskMan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox