This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: disabling sse3/sse4 in libc
- From: Akanksha Jain <akanksha at cs dot utexas dot edu>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: libc-help at sourceware dot org
- Date: Tue, 9 Oct 2012 18:09:48 -0500
- Subject: Re: disabling sse3/sse4 in libc
- References: <CAM=c4VrnRLivaB=gFiFrFqmApA4D4ic2H0pBy_1A2Usm8GCFJg@mail.gmail.com><CAM=c4VqXTTopJpbCZQV-cUkzgxGOhwhVGqBr=G_aBOqLssfP_Q@mail.gmail.com> <50584657.7010803@suse.com>
Thank you. Compiling glibc with --disable-multi-arch worked great.
I did try changing the CPUID my simulator returns, but that doesnt
always work because the simulator doesn't execute the entire program.
I fast forward to some point in the code by which the libraries are
already loaded by the native processor.
Thanks for your help
Akanksha
On Tue, Sep 18, 2012 at 5:00 AM, Andreas Jaeger <aj@suse.com> wrote:
> On 09/18/2012 03:19 AM, Akanksha Jain wrote:
>>
>> Hi,
>>
>> I would like to disable all SSE3/4 versions of functions in glibc. I
>> am doing some experiments with a micro-architectural simulator which
>> does not have support for SSE3 and 4. In order for my simulator to
>> execute the program, the executable should be devoid of any SSE3/4
>> instructions. My understanding is that the functions are chosen in
>> the library based on the CPUID. Is there a way I can disable SSE3/4 or
>> pass a non-native CPUID?
>>
>> Thanks in advance!
>
>
> Besides recompiling glibc with some changes, there's no way to change this -
> but I think it would be a worthwhile addition.
>
> but if you have a simulator, then fix the simulator to generate a proper
> cpuid. If the simulator does not support SSE4, then the cpuid from it should
> not say it supports it,
>
> Andreas
> --
> Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
> GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
--
Thanks,
Akanksha Jain
PhD Student
Department of Computer Science
University of Texas at Austin