From: Damien Lespiau <damien.lespiau@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] tests: Fix compilation when some gcc configurations
Date: Fri, 15 Jul 2016 12:09:18 +0100 [thread overview]
Message-ID: <20160715110918.GA2264@strange.ger.corp.intel.com> (raw)
In-Reply-To: <20160714174826.GB5578@nuc-i3427.alporthouse.com>
On Thu, Jul 14, 2016 at 06:48:26PM +0100, Chris Wilson wrote:
> On Thu, Jul 14, 2016 at 06:44:59PM +0100, Chris Wilson wrote:
> > On Thu, Jul 14, 2016 at 06:31:37PM +0100, Damien Lespiau wrote:
> > > Depending how the gcc was compiled it may be necessary to enable SSE4
> > > instructions explicitly. Otherwise:
> > >
> > > CC gem_gtt_speed.o
> > > In file included from gem_gtt_speed.c:54:0:
> > > /usr/lib/gcc/x86_64-linux-gnu/4.8/include/smmintrin.h:31:3: error: #error "SSE4.1 instruction set not enabled"
> > > # error "SSE4.1 instruction set not enabled"
> >
> > So the challenge is getting the function attribute applied to the
> > include.
> >
> > Ah, can you try
> > #pragma GCC target ("sse4.1")
> > in those blocks instead?
Yup, that also seems to enable sse4.1 for the rest of the compilation
unit.
> Oh, and we probably need an #if GCC > 4.y to be fully backwards
> compatible.
Couldn't find in less than 5 mins this information, gave up. Someone
exhibiting the problem will have to fix it :)
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2016-07-15 11:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 17:31 [PATCH i-g-t] tests: Fix compilation when some gcc configurations Damien Lespiau
2016-07-14 17:44 ` Chris Wilson
2016-07-14 17:48 ` Chris Wilson
2016-07-15 11:07 ` Damien Lespiau
2016-07-15 11:35 ` Chris Wilson
2016-07-15 11:09 ` Damien Lespiau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160715110918.GA2264@strange.ger.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox