Subject: Re: [boost] [GSOC]SIMD Library
From: Cory Nelson (phrosty_at_[hidden])
Date: 2011-03-30 19:46:30
On Wed, Mar 30, 2011 at 8:16 AM, Mathias Gaunard
> On 30/03/2011 15:11, Domagoj Saric wrote:
>> ps. does NT2 provide a way to choose/use multiple instruction sets?
> Not out of the box.
> What you could do is compile your code several times with different options
> and make each version into a separate dll, then select the right dll to load
> at runtime.
It would be useful if the types chose their instruction set by policy.
void go(float *f)
typedef vec4<float, Policy> vec;
void (*go_ptr)(float*) = go<x87>;
if(supports_sse) go_ptr = go<sse2>;
It would let us handle our own multiple-instruction-sets-in-one-binary
needs at whatever level we deem best.
-- Cory Nelson http://int64.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk