cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

valerioa
Adept II

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

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


0 Likes
1 Solution

Yep, that was it. I restored the library  libamdocl64.so  from AMD-APP-SDK-v2.6-RC3-lnx64 to

/opt/AMDAPP/lib/x86_64/

and the problem went away.

There must be an old version of libamdocl64.so that comes with the Ubuntu open source package fglrx that uses llvm/clang to compile the code. That library was getting in the way.

dneill, thank you very much for your help and ideas,

Valerio

View solution in original post

0 Likes
15 Replies