nvidia_uvm: Unknown symbol task_stack_page (err 0)

15 篇文章 1 订阅

When I run ./deviceQuery I get this result (the output without sudo is the same):

$ sudo optirun ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

FATAL: Module nvidia_uvm not found.
cudaGetDeviceCount returned 30
-> unknown error
Result = FAIL

when I try ./clock I get thits:

    $ sudo optirun ./clock
    CUDA Clock sample
    FATAL: Module nvidia_uvm not found.
    CUDA error at ../../common/inc/helper_cuda.h:905 code=30(cudaErrorUnknown) "cudaGetDeviceCount(&device_count)"

sudo modprobe -v nvidia-uvm said wrong format(not remember, but the more info in dmesg)

 

dmesg found:

$ dmesg
[  638.438514] nvidia_uvm: Unknown symbol task_stack_page (err 0)

 

search:

this page said that

Seems to be upstream problem. Adding #include <linux/sched/task_stack.h> on top of ./kernel/nvidia-uvm/uvm8_va_block.c should fix the issue.

so I tried, then make -j4 module and cp nvidia-uvm.ko to /lib/moduls/4.14XXX/kernel/driver/video/

depmod -a

than

sudo modprobe -v nvidia-uvm

success

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值