www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - using AVX

reply "flamencofantasy" <flamencofantasy gmail.com> writes:
Here is my test program;

import core.simd;

void main()
{
     byte32 b32;
}

Compiling using DMD on x64 windows 7 (Xeon E5-2630) prints the 
error message;
------ Build started: Project: dtest, Configuration: Debug x64 
------
Building Debug\dtest.exe...
Error: AVX vector types not supported
Building Debug\dtest.exe failed!

Compiling on debian 7 x64 (Xeon E3-1270v2) with dmd prints this 
error message;
server:~/d# dmd dtest.d -m64
Error: AVX vector types not supported

Both CPUs do have AVX instruction set;

http://ark.intel.com/products/64593/Intel-Xeon-Processor-E5-2630-15M-Cache-2_30-GHz-7_20-GTs-Intel-QPI

http://ark.intel.com/products/65727/Intel-Xeon-Processor-E3-1270-v2-8M-Cache-3_50-GHz

Thanks for your help!
May 15 2014
parent Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 16 May 2014 06:01, flamencofantasy via Digitalmars-d
<digitalmars-d puremagic.com> wrote:
 Here is my test program;

 import core.simd;

 void main()
 {
     byte32 b32;
 }

 Compiling using DMD on x64 windows 7 (Xeon E5-2630) prints the error
 message;
 ------ Build started: Project: dtest, Configuration: Debug x64 ------
 Building Debug\dtest.exe...
 Error: AVX vector types not supported
 Building Debug\dtest.exe failed!

 Compiling on debian 7 x64 (Xeon E3-1270v2) with dmd prints this error
 message;
 server:~/d# dmd dtest.d -m64
 Error: AVX vector types not supported

 Both CPUs do have AVX instruction set;

 http://ark.intel.com/products/64593/Intel-Xeon-Processor-E5-2630-15M-Cache-2_30-GHz-7_20-GTs-Intel-QPI

 http://ark.intel.com/products/65727/Intel-Xeon-Processor-E3-1270-v2-8M-Cache-3_50-GHz

 Thanks for your help!

It's not supported by DMD. You need to use GDC or LDC to get the most out of SIMD.
May 15 2014