未验证 提交 6d4435ac 编写于 作者: Y Yanxing Shi 提交者: GitHub

fix paddle.device.cuda.get_device_properties doc (#36178)

* Initial Commit

* add unittest and add error information

* modify doc

* fix some error

* fix some word

* fix bug cudaDeviceProp* and modify error explanation

* fix cudaDeviceProp* error and unnitest samples

* fix hip error and PADDLE_WITH_HIP

* update style

* fix error is_compiled_with_cuda

* fix paddle.device.cuda.get_device_properties

* fix error for multi thread safe

* update style

* merge conflict

* modify after mentor review

* update style

* delete word

* fix unittest error for windows

* support string input and modify some code

* modify doc to support string input

* fix error for express information

* fix error for express information

* fix unnitest for windows

* fix device.startswith('gpu:')

* format error and doc

* fix after review

* format code

* fix error for doc compile

* fix error for doc compile

* fix error for doc compile

* fix error for doc compile

* fix error for doc compile

* fix py2 error

* fix wrong words and doc

* fix _gpuDeviceProperties

* test=document_fix
上级 767050d9
...@@ -212,15 +212,15 @@ def get_device_properties(device=None): ...@@ -212,15 +212,15 @@ def get_device_properties(device=None):
Return the properties of given device. Return the properties of given device.
Args: Args:
device(paddle.CUDAPlace or int or str): The device, the id of the device device(paddle.CUDAPlace or int or str): The device, the id of the device or
or the string name of device like 'gpu:x' which to get the properties of the string name of device like 'gpu:x' which to get the properties of the
the device from. If device is None, the device is the current device. device from. If device is None, the device is the current device.
Default: None. Default: None.
Returns: Returns:
_gpuDeviceProperties: the properties of the device which include ASCII string _gpuDeviceProperties: The properties of the device which include ASCII string
identifying device, major compute capability, minor compute capability, global identifying device, major compute capability, minor compute capability, global
memory available on device and the number of multiprocessors on the device. memory available and the number of multiprocessors on the device.
Examples: Examples:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册