pycuda 安装中的警告

问题描述

我是 Cuda 的初学者,想开始使用它。所以我在我的 Ubuntu 18.04 和 GeForce GTX 1050 上安装了 Cuda11.2 和 CuDNN8.1。

我安装了 pycuda2021.1 并运行了提供的测试文件。运行后,我收到以下警告

omkar@omkar-G3-3579:~/Downloads/pycuda-2021.1/test$ python3 test_driver.py 
======================== test session starts =========================
platform linux -- Python 3.6.9,pytest-6.2.3,py-1.10.0,pluggy-0.13.1
rootdir: /home/omkar/Downloads/pycuda-2021.1
collected 33 items                                                   

test_driver.py .................................               [100%]

========================== warnings summary ==========================
../../../../../usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527: PytestUnknownMarkWarning: Unknown pytest.mark.cuda - is this a typo?  You can register custom marks to avoid this warning - for details,see https://docs.pytest.org/en/stable/mark.html
    return mark_test.cuda(f)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=================== 33 passed,1 warning in 17.02s ===================

omkar@omkar-G3-3579:~/Downloads/pycuda-2021.1/test$ python3 test_
test_cumath.py    test_driver.py    test_gpuarray.py  
omkar@omkar-G3-3579:~/Downloads/pycuda-2021.1/test$ python3 test_cumath.py 
============================================================ test session starts ============================================================
platform linux -- Python 3.6.9,pluggy-0.13.1
rootdir: /home/omkar/Downloads/pycuda-2021.1
collected 28 items                                                                                                                          

test_cumath.py ............................                                                                                           [100%]

============================================================= warnings summary ==============================================================
../../../../../usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527: PytestUnknownMarkWarning: Unknown pytest.mark.cuda - is this a typo?  You can register custom marks to avoid this warning - for details,see https://docs.pytest.org/en/stable/mark.html
    return mark_test.cuda(f)

test/test_cumath.py: 20 warnings
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/cumath.py:13: DeprecationWarning: please use 'out' or 'stream' keyword arguments
    "please use 'out' or 'stream' keyword arguments",DeprecationWarning

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================== 28 passed,21 warnings in 16.30s ======================================================

omkar@omkar-G3-3579:~/Downloads/pycuda-2021.1/test$ python3 test_gpuarray.py 
============================================================ test session starts ============================================================
platform linux -- Python 3.6.9,pluggy-0.13.1
rootdir: /home/omkar/Downloads/pycuda-2021.1
collected 62 items                                                                                                                          

test_gpuarray.py ....................................................ss........                                                       [100%]

============================================================= warnings summary ==============================================================
../../../../../usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/tools.py:527: PytestUnknownMarkWarning: Unknown pytest.mark.cuda - is this a typo?  You can register custom marks to avoid this warning - for details,see https://docs.pytest.org/en/stable/mark.html
    return mark_test.cuda(f)

test/test_gpuarray.py::TestGPUArray::test_numpy_integer_shape
test/test_gpuarray.py::TestGPUArray::test_numpy_integer_shape
test/test_gpuarray.py::TestGPUArray::test_ndarray_shape
test/test_gpuarray.py::TestGPUArray::test_ndarray_shape
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/gpuarray.py:224: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16,use a.item() instead
    s = np.asscalar(s)

test/test_gpuarray.py::TestGPUArray::test_ndarray_shape
  /usr/local/lib/python3.6/dist-packages/pycuda-2021.1-py3.6-linux-x86_64.egg/pycuda/gpuarray.py:214: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16,use a.item() instead
    shape = np.asscalar(shape)

test/test_gpuarray.py::TestGPUArray::test_struct_reduce
  /home/omkar/Downloads/pycuda-2021.1/test/test_gpuarray.py:962: DeprecationWarning: register_dtype is deprecated. Use get_or_register_dtype instead.
    register_dtype(mmc_dtype,"minmax_collector")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================================ 60 passed,2 skipped,7 warnings in 45.97s ================================================= 

这些警告是什么,我该如何解决?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...