Skip to content

Commit 0d3f7f0

Browse files
committed
fix chart
1 parent 848cc8c commit 0d3f7f0

File tree

2 files changed

+77
-77
lines changed

2 files changed

+77
-77
lines changed

docs/dev_guides/custom_device_docs/custom_runtime_cn.rst

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,45 @@
1616
Device 接口
1717
############
1818

19-
+--------------------------+--------------------------------------------+------+
19+
+---------------------------+--------------------------------------------+------+
2020
| 接口名称 | 功能简介 | 必选 |
21-
+==========================+============================================+======+
22-
| initialize | 初始化硬件后端。 | N |
23-
+--------------------------+--------------------------------------------+------+
24-
| finalize | 去初始化硬件后端。 | N |
25-
+--------------------------+--------------------------------------------+------+
26-
| init_device | 初始化指定硬件设备。 | N |
27-
+--------------------------+--------------------------------------------+------+
28-
| deinit_device | 去初始化指定硬件设备。 | N |
29-
+--------------------------+--------------------------------------------+------+
30-
| set_device | 设置当前使用的硬件设备。 | Y |
31-
+--------------------------+--------------------------------------------+------+
32-
| get_device | 获取当前使用的硬件设备。 | Y |
33-
+--------------------------+--------------------------------------------+------+
34-
| synchronize_device | 同步指定的硬件设备。 | Y |
35-
+--------------------------+--------------------------------------------+------+
36-
| get_device_count | 查询可用设备数量。 | Y |
37-
+--------------------------+--------------------------------------------+------+
38-
| get_device_list | 查询可用设备号。 | Y |
39-
+--------------------------+--------------------------------------------+------+
40-
| get_compute_capability | 查询设备算力。 | Y |
41-
+--------------------------+--------------------------------------------+------+
42-
| get_runtime_version | 查询运行时版本号。 | Y |
43-
+--------------------------+--------------------------------------------+------+
44-
| get_driver_version | 查询驱动版本号。 | Y |
45-
+--------------------------+--------------------------------------------+------+
46-
| get_multi_process | 获取设备上的 MultiProcessor 数量。 | N |
47-
+--------------------------+--------------------------------------------+------+
48-
| get_max_threads_per_mp | 获取设备每个 MultiProcessor 上的最大线程数。 | N |
49-
+--------------------------+--------------------------------------------+------+
50-
| get_max_threads_per_block| 获取设备每个 Block 能够运行的最大线程数。 | N |
51-
+--------------------------+--------------------------------------------+------+
52-
| get_max_grid_dim_size | 获取设备最大网格维度大小。 | N |
53-
+--------------------------+--------------------------------------------+------+
54-
| init_eigen_device | 初始化 Eigen GPU 设备对象。 | N |
55-
+--------------------------+--------------------------------------------+------+
56-
| destroy_eigen_device | 销毁 Eigen GPU 设备对象。 | N |
57-
+--------------------------+--------------------------------------------+------+
21+
+===========================+============================================+======+
22+
| initialize | 初始化硬件后端。 | N |
23+
+---------------------------+--------------------------------------------+------+
24+
| finalize | 去初始化硬件后端。 | N |
25+
+---------------------------+--------------------------------------------+------+
26+
| init_device | 初始化指定硬件设备。 | N |
27+
+---------------------------+--------------------------------------------+------+
28+
| deinit_device | 去初始化指定硬件设备。 | N |
29+
+---------------------------+--------------------------------------------+------+
30+
| set_device | 设置当前使用的硬件设备。 | Y |
31+
+---------------------------+--------------------------------------------+------+
32+
| get_device | 获取当前使用的硬件设备。 | Y |
33+
+---------------------------+--------------------------------------------+------+
34+
| synchronize_device | 同步指定的硬件设备。 | Y |
35+
+---------------------------+--------------------------------------------+------+
36+
| get_device_count | 查询可用设备数量。 | Y |
37+
+---------------------------+--------------------------------------------+------+
38+
| get_device_list | 查询可用设备号。 | Y |
39+
+---------------------------+--------------------------------------------+------+
40+
| get_compute_capability | 查询设备算力。 | Y |
41+
+---------------------------+--------------------------------------------+------+
42+
| get_runtime_version | 查询运行时版本号。 | Y |
43+
+---------------------------+--------------------------------------------+------+
44+
| get_driver_version | 查询驱动版本号。 | Y |
45+
+---------------------------+--------------------------------------------+------+
46+
| get_multi_process | 获取设备上的 MultiProcessor 数量。 | N |
47+
+---------------------------+--------------------------------------------+------+
48+
| get_max_threads_per_mp | 获取设备每个 MultiProcessor 上的最大线程数。 | N |
49+
+---------------------------+--------------------------------------------+------+
50+
| get_max_threads_per_block | 获取设备每个 Block 能够运行的最大线程数。 | N |
51+
+---------------------------+--------------------------------------------+------+
52+
| get_max_grid_dim_size | 获取设备最大网格维度大小。 | N |
53+
+---------------------------+--------------------------------------------+------+
54+
| init_eigen_device | 初始化 Eigen GPU 设备对象。 | N |
55+
+---------------------------+--------------------------------------------+------+
56+
| destroy_eigen_device | 销毁 Eigen GPU 设备对象。 | N |
57+
+---------------------------+--------------------------------------------+------+
5858

5959

6060
Memory 接口

docs/dev_guides/custom_device_docs/custom_runtime_en.rst

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,45 @@ Custom Runtime offers a new method to register the runtime of new devices via pl
1414
Device APIs
1515
############
1616

17-
+------------------------+----------------------------------------+----------+
18-
| API | Function | Required |
19-
+========================+========================================+==========+
20-
| initialize | To initialize the device backend | N |
21-
+------------------------+----------------------------------------+----------+
22-
| finalize | To de-initialize the device backend | N |
23-
+------------------------+----------------------------------------+----------+
24-
| init_device | To initialize the designated device | N |
25-
+------------------------+----------------------------------------+----------+
26-
| deinit_device | To de-initialize the designated device | N |
27-
+------------------------+----------------------------------------+----------+
28-
| set_device | To set the current device | Y |
29-
+------------------------+----------------------------------------+----------+
30-
| get_device | To get the current device | Y |
31-
+------------------------+----------------------------------------+----------+
32-
| synchronize_device | To synchronize the desginated device | Y |
33-
+------------------------+----------------------------------------+----------+
34-
| get_device_count | To count available devices | Y |
35-
+------------------------+----------------------------------------+----------+
36-
| get_device_list | To get the list of available devices | Y |
37-
+------------------------+----------------------------------------+----------+
38-
| get_compute_capability | To get computing capability of devices | Y |
39-
+------------------------+----------------------------------------+----------+
40-
| get_runtime_version | To get the runtime version | Y |
41-
+------------------------+----------------------------------------+----------+
42-
| get_driver_version | To get the driver version | Y |
43-
+------------------------+----------------------------------------+----------+
44-
| get_multi_process | To get the number of MultiProcessors on the device | N |
45-
+------------------------+----------------------------------------+----------+
46-
| get_max_threads_per_mp | To get the max threads per MultiProcessor | N |
47-
+------------------------+----------------------------------------+----------+
48-
| get_max_threads_per_block | To get the max threads per block | N |
49-
+------------------------+----------------------------------------+----------+
50-
| get_max_grid_dim_size | To get the max grid dimension size | N |
51-
+------------------------+----------------------------------------+----------+
52-
| init_eigen_device | To initialize the Eigen GPU device object | N |
53-
+------------------------+----------------------------------------+----------+
54-
| destroy_eigen_device | To destroy the Eigen GPU device object | N |
55-
+------------------------+----------------------------------------+----------+
17+
+---------------------------+----------------------------------------------------------+----------+
18+
| API | Function | Required |
19+
+===========================+==========================================================+==========+
20+
| initialize | To initialize the device backend | N |
21+
+---------------------------+----------------------------------------------------------+----------+
22+
| finalize | To de-initialize the device backend | N |
23+
+---------------------------+----------------------------------------------------------+----------+
24+
| init_device | To initialize the designated device | N |
25+
+---------------------------+----------------------------------------------------------+----------+
26+
| deinit_device | To de-initialize the designated device | N |
27+
+---------------------------+----------------------------------------------------------+----------+
28+
| set_device | To set the current device | Y |
29+
+---------------------------+----------------------------------------------------------+----------+
30+
| get_device | To get the current device | Y |
31+
+---------------------------+----------------------------------------------------------+----------+
32+
| synchronize_device | To synchronize the desginated device | Y |
33+
+---------------------------+----------------------------------------------------------+----------+
34+
| get_device_count | To count available devices | Y |
35+
+---------------------------+----------------------------------------------------------+----------+
36+
| get_device_list | To get the list of available devices | Y |
37+
+---------------------------+----------------------------------------------------------+----------+
38+
| get_compute_capability | To get computing capability of devices | Y |
39+
+---------------------------+----------------------------------------------------------+----------+
40+
| get_runtime_version | To get the runtime version | Y |
41+
+---------------------------+----------------------------------------------------------+----------+
42+
| get_driver_version | To get the driver version | Y |
43+
+---------------------------+----------------------------------------------------------+----------+
44+
| get_multi_process | To get the number of MultiProcessors on the device | N |
45+
+---------------------------+----------------------------------------------------------+----------+
46+
| get_max_threads_per_mp | To get the max threads per MultiProcessor | N |
47+
+---------------------------+----------------------------------------------------------+----------+
48+
| get_max_threads_per_block | To get the max threads per block | N |
49+
+---------------------------+----------------------------------------------------------+----------+
50+
| get_max_grid_dim_size | To get the max grid dimension size | N |
51+
+---------------------------+----------------------------------------------------------+----------+
52+
| init_eigen_device | To initialize the Eigen GPU device object | N |
53+
+---------------------------+----------------------------------------------------------+----------+
54+
| destroy_eigen_device | To destroy the Eigen GPU device object | N |
55+
+---------------------------+----------------------------------------------------------+----------+
5656

5757

5858
Memory APIs

0 commit comments

Comments
 (0)