Skip to content

Commit 4abdf72

Browse files
committed
fix format
1 parent 0d3f7f0 commit 4abdf72

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

docs/dev_guides/custom_device_docs/custom_runtime_cn.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,41 @@ Device 接口
1717
############
1818

1919
+---------------------------+--------------------------------------------+------+
20-
| 接口名称 | 功能简介 | 必选 |
20+
| 接口名称 | 功能简介 | 必选 |
2121
+===========================+============================================+======+
22-
| initialize | 初始化硬件后端。 | N |
22+
| initialize | 初始化硬件后端。 | N |
2323
+---------------------------+--------------------------------------------+------+
24-
| finalize | 去初始化硬件后端。 | N |
24+
| finalize | 去初始化硬件后端。 | N |
2525
+---------------------------+--------------------------------------------+------+
26-
| init_device | 初始化指定硬件设备。 | N |
26+
| init_device | 初始化指定硬件设备。 | N |
2727
+---------------------------+--------------------------------------------+------+
28-
| deinit_device | 去初始化指定硬件设备。 | N |
28+
| deinit_device | 去初始化指定硬件设备。 | N |
2929
+---------------------------+--------------------------------------------+------+
30-
| set_device | 设置当前使用的硬件设备。 | Y |
30+
| set_device | 设置当前使用的硬件设备。 | Y |
3131
+---------------------------+--------------------------------------------+------+
32-
| get_device | 获取当前使用的硬件设备。 | Y |
32+
| get_device | 获取当前使用的硬件设备。 | Y |
3333
+---------------------------+--------------------------------------------+------+
34-
| synchronize_device | 同步指定的硬件设备。 | Y |
34+
| synchronize_device | 同步指定的硬件设备。 | Y |
3535
+---------------------------+--------------------------------------------+------+
36-
| get_device_count | 查询可用设备数量。 | Y |
36+
| get_device_count | 查询可用设备数量。 | Y |
3737
+---------------------------+--------------------------------------------+------+
38-
| get_device_list | 查询可用设备号。 | Y |
38+
| get_device_list | 查询可用设备号。 | Y |
3939
+---------------------------+--------------------------------------------+------+
40-
| get_compute_capability | 查询设备算力。 | Y |
40+
| get_compute_capability | 查询设备算力。 | Y |
4141
+---------------------------+--------------------------------------------+------+
42-
| get_runtime_version | 查询运行时版本号。 | Y |
42+
| get_runtime_version | 查询运行时版本号。 | Y |
4343
+---------------------------+--------------------------------------------+------+
44-
| get_driver_version | 查询驱动版本号。 | Y |
44+
| get_driver_version | 查询驱动版本号。 | Y |
4545
+---------------------------+--------------------------------------------+------+
46-
| get_multi_process | 获取设备上的 MultiProcessor 数量。 | N |
46+
| get_multi_process | 获取设备上的 MultiProcessor 数量。 | N |
4747
+---------------------------+--------------------------------------------+------+
48-
| get_max_threads_per_mp | 获取设备每个 MultiProcessor 上的最大线程数。 | N |
48+
| get_max_threads_per_mp | 获取设备每个 MultiProcessor 上的最大线程数。 | N |
4949
+---------------------------+--------------------------------------------+------+
50-
| get_max_threads_per_block | 获取设备每个 Block 能够运行的最大线程数。 | N |
50+
| get_max_threads_per_block | 获取设备每个 Block 能够运行的最大线程数。 | N |
5151
+---------------------------+--------------------------------------------+------+
52-
| get_max_grid_dim_size | 获取设备最大网格维度大小。 | N |
52+
| get_max_grid_dim_size | 获取设备最大网格维度大小。 | N |
5353
+---------------------------+--------------------------------------------+------+
54-
| init_eigen_device | 初始化 Eigen GPU 设备对象。 | N |
54+
| init_eigen_device | 初始化 Eigen GPU 设备对象。 | N |
5555
+---------------------------+--------------------------------------------+------+
5656
| destroy_eigen_device | 销毁 Eigen GPU 设备对象。 | N |
5757
+---------------------------+--------------------------------------------+------+

docs/dev_guides/custom_device_docs/custom_runtime_en.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,43 @@ Device APIs
1515
############
1616

1717
+---------------------------+----------------------------------------------------------+----------+
18-
| API | Function | Required |
18+
| API | Function | Required |
1919
+===========================+==========================================================+==========+
2020
| initialize | To initialize the device backend | N |
2121
+---------------------------+----------------------------------------------------------+----------+
22-
| finalize | To de-initialize the device backend | N |
22+
| finalize | To de-initialize the device backend | N |
2323
+---------------------------+----------------------------------------------------------+----------+
24-
| init_device | To initialize the designated device | N |
24+
| init_device | To initialize the designated device | N |
2525
+---------------------------+----------------------------------------------------------+----------+
26-
| deinit_device | To de-initialize the designated device | N |
26+
| deinit_device | To de-initialize the designated device | N |
2727
+---------------------------+----------------------------------------------------------+----------+
28-
| set_device | To set the current device | Y |
28+
| set_device | To set the current device | Y |
2929
+---------------------------+----------------------------------------------------------+----------+
30-
| get_device | To get the current device | Y |
30+
| get_device | To get the current device | Y |
3131
+---------------------------+----------------------------------------------------------+----------+
32-
| synchronize_device | To synchronize the desginated device | Y |
32+
| synchronize_device | To synchronize the desginated device | Y |
3333
+---------------------------+----------------------------------------------------------+----------+
34-
| get_device_count | To count available devices | Y |
34+
| get_device_count | To count available devices | Y |
3535
+---------------------------+----------------------------------------------------------+----------+
36-
| get_device_list | To get the list of available devices | Y |
36+
| get_device_list | To get the list of available devices | Y |
3737
+---------------------------+----------------------------------------------------------+----------+
38-
| get_compute_capability | To get computing capability of devices | Y |
38+
| get_compute_capability | To get computing capability of devices | Y |
3939
+---------------------------+----------------------------------------------------------+----------+
40-
| get_runtime_version | To get the runtime version | Y |
40+
| get_runtime_version | To get the runtime version | Y |
4141
+---------------------------+----------------------------------------------------------+----------+
42-
| get_driver_version | To get the driver version | Y |
42+
| get_driver_version | To get the driver version | Y |
4343
+---------------------------+----------------------------------------------------------+----------+
44-
| get_multi_process | To get the number of MultiProcessors on the device | N |
44+
| get_multi_process | To get the number of MultiProcessors on the device | N |
4545
+---------------------------+----------------------------------------------------------+----------+
46-
| get_max_threads_per_mp | To get the max threads per MultiProcessor | N |
46+
| get_max_threads_per_mp | To get the max threads per MultiProcessor | N |
4747
+---------------------------+----------------------------------------------------------+----------+
48-
| get_max_threads_per_block | To get the max threads per block | N |
48+
| get_max_threads_per_block | To get the max threads per block | N |
4949
+---------------------------+----------------------------------------------------------+----------+
50-
| get_max_grid_dim_size | To get the max grid dimension size | N |
50+
| get_max_grid_dim_size | To get the max grid dimension size | N |
5151
+---------------------------+----------------------------------------------------------+----------+
52-
| init_eigen_device | To initialize the Eigen GPU device object | N |
52+
| init_eigen_device | To initialize the Eigen GPU device object | N |
5353
+---------------------------+----------------------------------------------------------+----------+
54-
| destroy_eigen_device | To destroy the Eigen GPU device object | N |
54+
| destroy_eigen_device | To destroy the Eigen GPU device object | N |
5555
+---------------------------+----------------------------------------------------------+----------+
5656

5757

0 commit comments

Comments
 (0)