找回密码
 新注册用户
搜索
查看: 4853|回复: 6

[求助] GPU包一直运算失败

[复制链接]
发表于 2020-4-14 15:13:52 | 显示全部楼层 |阅读模式
遇到了难以解决的问题,特来向各位大佬求教


0x01 现象:
下载GPU任务包之后,运行时报错:

1.png

重点是这行:
  1. Illegal value for DeviceIndex: 1
复制代码



0x02 环境:
操作系统:Ubuntu 18.04 x64
内核:5.3.0-46
CPU:AMD APU A10-7860K
GPU:P106-100



0x03 配置:
显卡配置:
2.png
gpu-index 设置为1表示P106显卡,设置为0表示APU核显;
opencl-index 和 cuda-index 无论配置为-1、0、1,均报相同的错误;



FAH 配置:
3.png

System Info:
4.png

CLINFO:
5.png

0x04 其它信息:
1) CUDA ToolKit 是通过 runfile 方式安装的。
2) 已经重装过系统了,Windows 和 Linux 都是报同样的错误。
3) BOINC 里面的 GPU 任务是可以正常计算的。




回复

使用道具 举报

发表于 2020-4-14 23:55:38 | 显示全部楼层
机器上只有1个GPU,gpu-index ,opencl-index 和 cuda-index参数都不需要设置。保持默认就好了
回复

使用道具 举报

 楼主| 发表于 2020-4-15 18:33:14 | 显示全部楼层
wpf999 发表于 2020-4-14 23:55
机器上只有1个GPU,gpu-index ,opencl-index 和 cuda-index参数都不需要设置。保持默认就好了 ...

机器上有一个GPU和一个APU,如果填写-1的话,会把APU也带出来,两个同时计算会出错。


好在问题已经解决了:
1)GPU Index 填写1可以带出P106-100显卡。
2)OpenCL Index 要填写 0;
3)CUDA Index 也要填写 0;
以上两个之前填0会出错,不知道为什么这次就好了。




===吐槽===
虽然 GPU Index 是 1,但对应的 OpenCL Index 却是 0,可能是因为 OpenCL 不支持 APU 吧,所以 N 卡排行第一个,索引就是 0 了。

回复

使用道具 举报

发表于 2020-4-15 21:56:26 | 显示全部楼层
就像您这个,多GPU时,GPU Index根据fah control界面system 信息里的index来选择
回复

使用道具 举报

发表于 2020-4-15 21:59:12 | 显示全部楼层
  1. *********************** Log Started 2020-04-04T11:05:00Z ***********************
  2. 11:05:00:************************* Folding[url=home.php?mod=space&uid=92741]@home[/url] Client *************************
  3. 11:05:00:        Website: https://foldingathome.org/
  4. 11:05:00:      Copyright: (c) 2009-2018 foldingathome.org
  5. 11:05:00:         Author: Joseph Coffland <joseph@cauldrondevelopment.com>
  6. 11:05:00:           Args:
  7. 11:05:00:         Config: C:\Users\root\AppData\Roaming\FAHClient\config.xml
  8. 11:05:00:******************************** Build ********************************
  9. 11:05:00:        Version: 7.5.1
  10. 11:05:00:           Date: May 11 2018
  11. 11:05:00:           Time: 13:06:32
  12. 11:05:00:     Repository: Git
  13. 11:05:00:       Revision: 4705bf53c635f88b8fe85af7675557e15d491ff0
  14. 11:05:00:         Branch: master
  15. 11:05:00:       Compiler: Visual C++ 2008
  16. 11:05:00:        Options: /TP /nologo /EHa /wd4297 /wd4103 /Ox /MT
  17. 11:05:00:       Platform: win32 10
  18. 11:05:00:           Bits: 32
  19. 11:05:00:           Mode: Release
  20. 11:05:00:******************************* System ********************************
  21. 11:05:00:            CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
  22. 11:05:00:         CPU ID: GenuineIntel Family 6 Model 60 Stepping 3
  23. 11:05:00:           CPUs: 8
  24. 11:05:00:         Memory: 31.71GiB
  25. 11:05:00:    Free Memory: 29.16GiB
  26. 11:05:00:        Threads: WINDOWS_THREADS
  27. 11:05:00:     OS Version: 6.1
  28. 11:05:00:    Has Battery: false
  29. 11:05:00:     On Battery: false
  30. 11:05:00:     UTC Offset: 8
  31. 11:05:00:            PID: 4948
  32. 11:05:00:            CWD: C:\Users\root\AppData\Roaming\FAHClient
  33. 11:05:00:             OS: Windows 7 Ultimate
  34. 11:05:00:        OS Arch: AMD64
  35. 11:05:00:           GPUs: 1
  36. 11:05:00:          GPU 0: Bus:1 Slot:0 Func:0 NVIDIA:7 TU116 [GeForce GTX 1660]
  37. 11:05:00:  CUDA Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:7.5 Driver:10.1
  38. 11:05:00:OpenCL Device 0: Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:431.60
  39. 11:05:00:OpenCL Device 1: Platform:1 Device:0 Bus:NA Slot:NA Compute:1.2 Driver:10.18
  40. 11:05:00:  Win32 Service: false
  41. 11:05:00:***********************************************************************
复制代码
回复

使用道具 举报

 楼主| 发表于 2020-4-16 15:19:02 | 显示全部楼层

明白了,我没想到 System Info 面板里 OpenCL 后面跟着的这个数字竟然是和 OpenCL Index 选项对应的啊。。[手动捂脸]


  1. 11:05:00:  CUDA Device <font color="Red">0</font>: Platform:0 Device:0 Bus:1 Slot:0 Compute:7.5 Driver:10.1
  2. 11:05:00:OpenCL Device <font color="Red">0</font>: Platform:0 Device:0 Bus:1 Slot:0 Compute:1.2 Driver:431.60
  3. 11:05:00:OpenCL Device <font color="Red">1</font>: Platform:1 Device:0 Bus:NA Slot:NA Compute:1.2 Driver:10.18
复制代码




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~
欢迎大家多多支持基金会~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-4-20 00:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表