AnsweredAssumed Answered

error: invalid instruction mnemonic 'vfmaddsd' while running FFT sample on Linux x86_64

Question asked by valerioa on Mar 19, 2012
Latest reply on Mar 26, 2012 by qneill

I'm trying the FFT sample on a Ubuntu 11.04 with a FX-8150 and 4 Firepro 3d V5800

 

My hardware:

 

Motherboard: MSI FX990-GD80

CPU: AMD FX 8150 3.6 GHz

RAM: 32Gb

4x FirePro 3d V5800

OS Ubuntu 11.04

 

Drivers and SDK:

FirePro_8.911.3.1_Linux_X32X64_132092.zip

AMD-APP-SDK-v2.6-lnx64.tgz

 

The FFT sample runs fine on the GPUs:

 

valerio@hotshot:~$ /opt/AMDAPP/samples/opencl/bin/x86_64/FFT --device gpu

Platform 0 : Advanced Micro Devices, Inc.

 

Original Input Real

15.3732 201.81 51.9855 89.2322 92.572 34.4675 96.2478 66.3863 11.345 225.168

 

 

Original Input Img

0.0600514 0.788318 0.203068 0.348563 0.361609 0.134639 0.375968 0.259322 0.0443163 0.879562

 

Platform found : Advanced Micro Devices, Inc.

 

Selected Platform Vendor : Advanced Micro Devices, Inc.

Device 0 : Juniper Device ID is 0x20fd5e0

Device 1 : Juniper Device ID is 0x28a5e30

Device 2 : Juniper Device ID is 0x2aced60

Device 3 : Juniper Device ID is 0x2a0a670

Executing kernel for 1 iterations

-------------------------------------------

 

Output real

131643 -1085.95 -997.15 -1791.52 532.118 1659.74 -166.271 969.692 1189.76 -862.707

 

 

Output img

514.23 2289.84 936.489 -603.839 699.7 1018.18 1900.06 795.439 -1328.03 -293.334

 

But it crashes on the cpu:

 

valerio@hotshot:~$ /opt/AMDAPP/samples/opencl/bin/x86_64/FFT --device cpu

Platform 0 : Advanced Micro Devices, Inc.

 

Original Input Real

15.3732 201.81 51.9855 89.2322 92.572 34.4675 96.2478 66.3863 11.345 225.168

 

 

Original Input Img

0.0600514 0.788318 0.203068 0.348563 0.361609 0.134639 0.375968 0.259322 0.0443163 0.879562

 

Platform found : Advanced Micro Devices, Inc.

 

Selected Platform Vendor : Advanced Micro Devices, Inc.

Device 0 : AMD FX(tm)-8150 Eight-Core Processor            Device ID is 0x1c0c650

<inline asm>:1:2: error: invalid instruction mnemonic 'vfmaddsd'

    vfmaddsd %xmm2, %xmm0, %xmm1, %xmm0

    ^

LLVM ERROR: Error parsing inline asm

 

I seems that the llvm compiler, when run on a bulldozer cpu generates code for a valid instruction that is unknown to the assembler.

 

Is this a known problem? Am I doing something wrong?

 

Thanks,

 

Valerio

 


Outcomes