gpt4 book ai didi

opencl - 为 FPGS 安装驱动程序和内核模块失败

转载 作者:行者123 更新时间:2023-12-01 15:34:36 28 4
gpt4 key购买 nike

我正在尝试安装 OpenCL在具有以下规范的机器上:

  • CentOS 6.8
  • 内核版本 2.6.32-642.el6.x86_64
  • 4G 内存
  • FPGA 板“Nallatech 395 – 带 Stratix V D8”

aocl version

aocl 16.0.0.211(Altera SDK for OpenCL,版本 16.0.0 Build 211,版权所有 (C) 2016 Altera Corporation)

但是,我收到以下页面中描述的错误[Q 2-3]:
http://www.alteraforum.com/forum/showthread.php?t=46355

/#aocl install aocl install: Running install from /root/altera/16.0/hld/board/nalla_pcie/linux64/libexec Using kernel source files from /usr/src/kernels/2.6.32-642.el6.x86_64 make: *** /usr/src/kernels/2.6.32-642.el6.x86_64: No such file or directory. Stop. cp: cannot stat `./aclpci_drv.ko': No such file or directory FATAL: Module aclpci_drv not found.

上面的页面建议执行以下命令:

yum install kernel-devel

但是我仍然收到同样的错误。

请指教!

最佳答案

found有类似错误的线程,以下解决方案可能对您有用。但是,此解决方案基于版本 14。

First navigate to the linux/driver of the BSP folder which for you should be located at root/altera/16.0/hld/board/nalla_pcie/linux64/driver

Find and edit the file aclpci.c: At the top of the file add the following lines:

 #define __devinit
#define __devexit

Secondly edit aclpci_cmd.c: On line 83 remove the assignment

Change:

 result = pci_restore_state(aclpci->pci_dev);

to:

 pci_restore_state(aclpci->pci_dev);

On lines 438-440 comment out the following statements:

 if (dev->aer_firmware_first) { 
return -EIO;
}

You should now be able to run "aocl install" successfully.

关于opencl - 为 FPGS 安装驱动程序和内核模块失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40095363/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com