# Gr\_fir\_fff: using 3DNow! core dump

**URL:** <https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575>\
**Category:** GNU Radio\
**Created:** [March 20, 2013, 2:23am UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575 "2013-03-20T02:23:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 20, 2013, 2:23am UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/1 "2013-03-20T02:23:28Z")

</div>

I have a program that uses gnuradio to work with a HiQSDR.

The first time I fired up qsdr it worked.  
Closing it down and re-opening later I got the error. A reboot of the  
system didn’t solve it.

$ qsdr  
starting server  
Using Volk machine: sse4\_a\_64

> > > gr\_fir\_fff: using 3DNow!  
> > > terminate called after throwing an instance of ‘std::runtime\_error’  
> > > what(): unpaired unlock() call  
> > > Aborted (core dumped)  
> > > 73 … Sid.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 20, 2013, 2:10pm UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/2 "2013-03-20T14:10:29Z")

</div>

On Tue, Mar 19, 2013 at 9:20 PM, Sid B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> terminate called after throwing an instance of ‘std::runtime\_error’  
> what(): unpaired unlock() call  
> Aborted (core dumped)  
> 73 … Sid.

Sid,

What version of GNU Radio are you using for this? You should try to  
pull in the filter from the filter module instead of from gr:

from gnuradio import filter  
fir = filter.fir\_filter\_ccf(decim, taps)  
…

Also, what is your processor?

Tom

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 20, 2013, 3:22pm UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/3 "2013-03-20T15:22:22Z")

</div>

On 20/03/13 13:08, Tom R. wrote:

> > > > > gr\_fir\_fff: using 3DNow!  
> > > > > from gnuradio import filter  
> > > > > fir = filter.fir\_filter\_ccf(decim, taps)  
> > > > > …
> 
> Also, what is your processor?
> 
> Tom

Thanks,  
That was information I first thought of supplying but forgot when  
submitting.  
AMD x86\_64 Quad-Core.

root@sdrbox1:~# cat /proc/cpuinfo  
processor : 0  
vendor\_id : AuthenticAMD  
cpu family : 16  
model : 4  
model name : AMD Phenom™ II X4 965 Processor  
stepping : 3  
microcode : 0x10000c8  
cpu MHz : 3400.000  
cache size : 512 KB  
physical id : 0  
siblings : 4  
core id : 0  
cpu cores : 4  
apicid : 0  
initial apicid : 0  
fpu : yes  
fpu\_exception : yes  
cpuid level : 5  
wp : yes  
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge  
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext  
fxsr\_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant\_tsc rep\_good nopl  
nonstop\_tsc extd\_apicid pni monitor cx16 popcnt lahf\_lm cmp\_legacy svm  
extapic cr8\_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit  
wdt hw\_pstate npt lbrv svm\_lock nrip\_save  
bogomips : 6823.67  
TLB size : 1024 4K pages  
clflush size : 64  
cache\_alignment : 64  
address sizes : 48 bits physical, 48 bits virtual  
power management: ts ttp tm stc 100mhzsteps hwpstate

root@sdrbox1:~# cat /etc/lsb-release  
DISTRIB\_ID=Ubuntu  
DISTRIB\_RELEASE=12.10  
DISTRIB\_CODENAME=quantal  
DISTRIB\_DESCRIPTION=“Ubuntu 12.10”

root@sdrbox1:~# uname -r  
3.9.0-rc3+

The qsdr program runs on openSUSE 13.1 Milestone 0 x86\_64 with 3.9.0-rc3  
kernels on AMD 8-core and 6-core boxes without errors.  
73 … Sid.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 20, 2013, 4:02pm UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/4 "2013-03-20T16:02:43Z")

</div>

On 20/03/13 13:08, Tom R. wrote:

> > > > > gr\_fir\_fff: using 3DNow!  
> > > > > from gnuradio import filter  
> > > > > fir = filter.fir\_filter\_ccf(decim, taps)  
> > > > > …
> 
> Also, what is your processor?
> 
> Tom

This is the output from the openSUSE boxes and the CPU flags which don’t  
include sse4\_a.  
Later I’ll try rebuilding gnuradio with “-msse3” to see if that helps.

# qsdr

starting server  
gri\_fftw: can’t import wisdom from /root/.gr\_fftw\_wisdom  
Using Volk machine: avx\_64\_mmx\_orc

> > > gr\_fir\_fff: using SSE  
> > > connection from “127.0.0.1”  
> > > TCP: conneced  
> > > gr\_fir\_ccc: using SSE  
> > > gr\_fir\_ccf: using SSE  
> > > gr\_fir\_fcc: gr\_fir\_fcc: using SSE

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge  
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext  
fxsr\_opt pdpe1gb rdtscp lm constant\_tsc rep\_good nopl nonstop\_tsc  
extd\_apicid aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4\_1 sse4\_2  
popcnt aes xsave avx lahf\_lm cmp\_legacy svm extapic cr8\_legacy abm sse4a  
misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid\_msr  
topoext perfctr\_core perfctr\_nb arat cpb hw\_pstate npt lbrv svm\_lock  
nrip\_save tsc\_scale vmcb\_clean flushbyasid decodeassists pausefilter  
pfthreshold  
73 … Sid.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 21, 2013, 12:52am UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/5 "2013-03-21T00:52:40Z")

</div>

On Wed, Mar 20, 2013 at 10:58 AM, Sid B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > 
> > 
> > Also, what is your processor?
> > 
> > > > gr\_fir\_fff: using SSE  
> > > > avx lahf\_lm cmp\_legacy svm extapic cr8\_legacy abm sse4a misalignsse  
> > > > Microsoft Windows Free Zone - Linux used for all Computing Tasks  
> > > > Sid,

Have you tried using the filters out of the filter module, yet? Those  
filters use VOLK for SIMD instead of the hand-crafted stuff that in  
the gr filters. That might help. Besides which, we’re removing those  
filters, so moving to the new filter module will keep you more  
compatible as we go forward.

Tom

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 21, 2013, 2:16pm UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/6 "2013-03-21T14:16:07Z")

</div>

On Wed, Mar 20, 2013 at 10:10 PM, Sid B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > > > I have a program that uses gnuradio to work with a HiQSDR.
> > > > > 
> > > > > > > > gr\_fir\_fff: using 3DNow!  
> > > > > > > > pull in the filter from the filter module instead of from gr:  
> > > > > > > > include sse4\_a.
> > > 
> > > avx lahf\_lm cmp\_legacy svm extapic cr8\_legacy abm sse4a misalignsse  
> > > Microsoft Windows Free Zone - Linux used for all Computing Tasks
> 
> Thanks Tom,  
> The qsdr design is not mine.  
> I’ll pass this info on to the author.
> 
> 73 … Sid.

Can’t you change the code in qsdr yourself? If it’s based on GNU  
Radio, you should have the source code and making this change is  
pretty trivial (the interface to the filter functions is the same; you  
just get them from a different module).

Tom

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 21, 2013, 6:27pm UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/7 "2013-03-21T18:27:28Z")

</div>

On 21/03/13 13:14, Tom R. wrote:

> > > > > > Closing it down and re-opening later I got the error. A reboot of the  
> > > > > > 73 … Sid.  
> > > > > > Also, what is your processor?
> > > > > > 
> > > > > > > gr\_fir\_fff: using SSE  
> > > > > > > xsave  
> > > > > > > Senior Staff Specialist, Cricket Coach
> 
> Tom

OK Tom,  
I’ll have a check.  
73 … Sid.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks

---

<div class="post-metadata">

**Author:** ![Sid\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sid\_B](https://www.ruby-forum.com/u/Sid_B)\
**Post date:** [March 21, 2013, 3:12am UTC](https://www.ruby-forum.com/t/gr-fir-fff-using-3dnow-core-dump/227575/8 "2013-03-21T03:12:23Z")

</div>

On 20/03/13 23:50, Tom R. wrote:

> > > > $ qsdr  
> > > > What version of GNU Radio are you using for this? You should try to  
> > > > This is the output from the openSUSE boxes and the CPU flags which don’t
> > > > 
> > > > > gr\_fir\_ccf: using SSE  
> > > > > 73 … Sid.  
> > > > > the gr filters. That might help. Besides which, we’re removing those  
> > > > > filters, so moving to the new filter module will keep you more  
> > > > > compatible as we go forward.
> 
> Tom

Thanks Tom,  
The qsdr design is not mine.  
I’ll pass this info on to the author.  
73 … Sid.

–  
Sid B. … Hamradio License G3VBV, Licensed Private Pilot  
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support  
Senior Staff Specialist, Cricket Coach  
Microsoft Windows Free Zone - Linux used for all Computing Tasks
