usrp+gnuradio出错:EnvironmentError: OSError: error in pthread_setschedparam

当UHD产生新线程时,它可能会尝试提高线程的调度优先级。如果设置新的优先级失败,UHD软件将向控制台打印警告,如下所示。该警告是无害的。它只是意味着线程将保留正常或默认的调度优先级。

UHD Warning:
Unable to set the thread priority. Performance may be negatively affected.
Please see the general application notes in the manual for instructions.
EnvironmentError: OSError: error in pthread_setschedparam

要解决此问题,需要为非特权(非root)用户授予特殊权限以更改计划优先级。
为此,首先创建一个Linux组usrp:
sudo groupadd usrp
添加你的用户到这个组里:
sudo usermod -aG usrp $USER
在/etc/security/limits.conf文件的末尾添加:
@usrp - rtprio 99

来自http://www.mamicode.com/info-detail-2988217.html

猜你喜欢

转载自blog.csdn.net/ASPARTAMEovo/article/details/108114383
今日推荐