diff options
author | Ajay Jayaraj | 2018-07-03 21:43:42 -0500 |
---|---|---|
committer | Ajay Jayaraj | 2018-07-05 10:41:23 -0500 |
commit | 1a1c62a6ff06c134fbdc6829d13054202d884a43 (patch) | |
tree | 6c506f7f7760c1a4bb9b7bd3dd0e7f0818e8d7dc /docs | |
parent | 7b65cbba3878d793ff0c2480bc31ae28a9fa6e67 (diff) | |
download | tidl-api-1a1c62a6ff06c134fbdc6829d13054202d884a43.tar.gz tidl-api-1a1c62a6ff06c134fbdc6829d13054202d884a43.tar.xz tidl-api-1a1c62a6ff06c134fbdc6829d13054202d884a43.zip |
Emit a warning when running on 2 EVEs instead of 4
* By default, the OpenCL runtime is configured with sufficient memory to
offload TIDL networks to 2 devices. On devices with 4 EVEs (e.g.
AM5729), the amount of memory available to the runtime must be
increased. Refer the User's Guide, section "Insufficient OpenCL global
memory" for details
* Documentation
- Add a section on the "test" example
- Include a note on the need to increase the default OpenCL global
memory for 4 devices.
(MCT-1008)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/example.rst | 4 | ||||
-rw-r--r-- | docs/source/using_api.rst | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/source/example.rst b/docs/source/example.rst index eed7a43..ff7f125 100644 --- a/docs/source/example.rst +++ b/docs/source/example.rst | |||
@@ -129,6 +129,10 @@ to an *Executor* and how easy it is to connect the output from one | |||
129 | DSP: 21.1 ms 22.3 ms 5.62 % | 129 | DSP: 21.1 ms 22.3 ms 5.62 % |
130 | ====================== ==================== ============ | 130 | ====================== ==================== ============ |
131 | 131 | ||
132 | Test | ||
133 | ---- | ||
134 | This example is used to test pre-converted networks included in the TIDL API package (``test/testvecs/config/tidl_models``). When run without any arguments, the program ``test_tidl`` will run all available networks on the C66x DSPs and EVEs available on the SoC. Use the ``-c`` option to specify a single network. Run ``test_tidl -h`` for details. | ||
135 | |||
132 | Running Examples | 136 | Running Examples |
133 | ---------------- | 137 | ---------------- |
134 | 138 | ||
diff --git a/docs/source/using_api.rst b/docs/source/using_api.rst index 51ca13f..b2c909e 100644 --- a/docs/source/using_api.rst +++ b/docs/source/using_api.rst | |||
@@ -16,6 +16,13 @@ Determine if there are any TIDL capable devices on the AM57x SoC: | |||
16 | uint32_t num_eve = Executor::GetNumDevices(DeviceType::EVE); | 16 | uint32_t num_eve = Executor::GetNumDevices(DeviceType::EVE); |
17 | uint32_t num_dsp = Executor::GetNumDevices(DeviceType::DSP); | 17 | uint32_t num_dsp = Executor::GetNumDevices(DeviceType::DSP); |
18 | 18 | ||
19 | .. note:: | ||
20 | By default, the OpenCL runtime is configured with sufficient global memory | ||
21 | (via CMEM) to offload TIDL networks to 2 OpenCL devices. On devices where | ||
22 | ``Executor::GetNumDevices`` returns 4 (E.g. AM5729 with 4 EVE OpenCL | ||
23 | devices) the amount of memory available to the runtime must be increased. | ||
24 | Refer :ref:`opencl-global-memory` for details | ||
25 | |||
19 | Step 2 | 26 | Step 2 |
20 | ====== | 27 | ====== |
21 | Create a Configuration object by reading it from a file or by initializing it directly. The example below parses a configuration file and initializes the Configuration object. See ``examples/test/testvecs/config/infer`` for examples of configuration files. | 28 | Create a Configuration object by reading it from a file or by initializing it directly. The example below parses a configuration file and initializes the Configuration object. See ``examples/test/testvecs/config/infer`` for examples of configuration files. |