Page 1 of 1
SGI Altix - asm error
Posted: Mon Jun 23, 2008 7:47 pm
by naromero
Hi,
My apologies if I did not post this inquiry in the appropriate place. First, I think its great that this code has been
open sourced.
I am having trouble compiling readTSC.C. I have tried g++ 4.1.2 and icc 9.1.42. They both complain about
asm statements not being supported and unable to parse line 26. The architecture is an SGI Altix.
Many thanks,
Nichols A. Romero
Re: SGI Altix - asm error
Posted: Mon Jun 23, 2008 10:25 pm
by ivan
Hi,
I tried to compile the readTSC.C function with both icc (v10.1.15) and g++ (v4.1.2) and it works fine on Intel(R)-64 - linux fedora 8. Could you please post the exact error message you get during the compilation and the .mk include file you used? Is the error message something like:
... error: asm statements not supported in this environment
{ return __glibcpp_...; }
In this case, maybe you should try first to update the glibc development library.
Re: SGI Altix - asm error
Posted: Tue Jun 24, 2008 7:09 am
by fgygi
Hi,
The readTSC.C file is really only used in some test programs to have accurate timings. It is not used in Qbox itself. On the SGI Altix, you can remove the line
PLTOBJECTS = readTSC.o
from the Makefile header.
Re: SGI Altix - asm error
Posted: Tue Jun 24, 2008 10:56 am
by naromero
Hi,
In answer to ivan's inquiry, the is precisely the error message I received: "asm statements not supported in this environment."
I later realized that it was not an essential part of QBox so I just ended up omitting it. (which is what fgygi recommended)
I would appreciate any recommendations for a compiler + math libraries combination for the SGI Altix. I tried gcc 4.1.2
and the SGI -lscs -lsdsm but I could never resolve all the dependencies. The preferred compiler on the SGI Altix seems
to be icc.
Re: SGI Altix - asm error
Posted: Tue Jun 24, 2008 12:31 pm
by fgygi
Here is a Makefile header that I have used some time ago on NCSA Cobalt, which is an SGI Altix.
Francois