aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Zhao2019-08-30 14:14:31 -0500
committerYuan Zhao2019-08-30 14:34:12 -0500
commitc3786ddb01e187a983811d1cd3e08f6dfa20dd2e (patch)
tree6ed846928cda8f00cd773242601c8f5e7771bb7a
parent8d4329d8ee7f118bb8eab859e67ba61ea9144fa8 (diff)
downloadtidl-api-c3786ddb01e187a983811d1cd3e08f6dfa20dd2e.tar.gz
tidl-api-c3786ddb01e187a983811d1cd3e08f6dfa20dd2e.tar.xz
tidl-api-c3786ddb01e187a983811d1cd3e08f6dfa20dd2e.zip
Adjust example heap sizes with new TIDL library
- The latest TIDL library increased memory requirement slightly. Adjust heap sizes in the examples accordingly. - MCT-1217
-rw-r--r--docs/source/example.rst4
-rw-r--r--examples/one_eo_per_frame/main.cpp2
-rw-r--r--examples/test/main.cpp6
-rw-r--r--examples/two_eo_per_frame/main.cpp2
-rw-r--r--examples/two_eo_per_frame_opt/main.cpp2
5 files changed, 10 insertions, 6 deletions
diff --git a/docs/source/example.rst b/docs/source/example.rst
index 9c696ad..669020f 100644
--- a/docs/source/example.rst
+++ b/docs/source/example.rst
@@ -276,6 +276,10 @@ versus ExecutionObject level.
276When there is a requirement to run the SSD networks non-partitioned, 276When there is a requirement to run the SSD networks non-partitioned,
277for example, the SoC only has C66x cores but not EVE cores, 277for example, the SoC only has C66x cores but not EVE cores,
278use ``-e 0`` to run the full network only on C66x cores, without partitioning. 278use ``-e 0`` to run the full network only on C66x cores, without partitioning.
279When running full network with C66x DSP cores, jdetnet works fine with default
280heap sizes. jdetnet_voc requires slightly larger heap size and can be run
281with environment variable, e.g.
282``TIDL_NETWORK_HEAP_SIZE_DSP=75000000 ./ssd_multibox -d 1 -e 0``.
279 283
280.. _mnist-example: 284.. _mnist-example:
281 285
diff --git a/examples/one_eo_per_frame/main.cpp b/examples/one_eo_per_frame/main.cpp
index 8872c06..c8000d1 100644
--- a/examples/one_eo_per_frame/main.cpp
+++ b/examples/one_eo_per_frame/main.cpp
@@ -100,7 +100,7 @@ bool Run(const string& config_file, int num_eve, int num_dsp,
100 100
101 // Heap sizes for this network determined using Configuration::showHeapStats 101 // Heap sizes for this network determined using Configuration::showHeapStats
102 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB 102 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB
103 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB 103 c.NETWORK_HEAP_SIZE = (34 << 20); // 34MB
104 104
105 c.numFrames = 16; 105 c.numFrames = 16;
106 106
diff --git a/examples/test/main.cpp b/examples/test/main.cpp
index f6dfb64..df9fa88 100644
--- a/examples/test/main.cpp
+++ b/examples/test/main.cpp
@@ -244,6 +244,9 @@ bool RunAllConfigurations(int32_t num_devices, DeviceType device_type)
244 int errors = 0; 244 int errors = 0;
245 for (auto config : configurations) 245 for (auto config : configurations)
246 { 246 {
247 // Skip smallRoi, not a real network anyway
248 if (config.compare("smallRoi") == 0) continue;
249
247 std::string config_file = "testvecs/config/infer/tidl_config_" 250 std::string config_file = "testvecs/config/infer/tidl_config_"
248 + config + ".txt"; 251 + config + ".txt";
249 std::cout << "Running " << config << " on " << num_devices 252 std::cout << "Running " << config << " on " << num_devices
@@ -259,9 +262,6 @@ bool RunAllConfigurations(int32_t num_devices, DeviceType device_type)
259 262
260 if (!status) { errors++; continue; } 263 if (!status) { errors++; continue; }
261 264
262 // Skip smallRoi reference checking, will investigate
263 if (config.compare("smallRoi") == 0) continue;
264
265 // Check output against reference output 265 // Check output against reference output
266 std::string reference_output = "testvecs/reference/" 266 std::string reference_output = "testvecs/reference/"
267 + config + "_ref.bin"; 267 + config + "_ref.bin";
diff --git a/examples/two_eo_per_frame/main.cpp b/examples/two_eo_per_frame/main.cpp
index d1aa6dc..f309d4e 100644
--- a/examples/two_eo_per_frame/main.cpp
+++ b/examples/two_eo_per_frame/main.cpp
@@ -91,7 +91,7 @@ bool Run(int num_eve, int num_dsp, const char* ref_output)
91 91
92 // Heap sizes for this network determined using Configuration::showHeapStats 92 // Heap sizes for this network determined using Configuration::showHeapStats
93 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB 93 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB
94 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB 94 c.NETWORK_HEAP_SIZE = (34 << 20); // 34MB
95 95
96 // Run this example for 16 input frames 96 // Run this example for 16 input frames
97 c.numFrames = 16; 97 c.numFrames = 16;
diff --git a/examples/two_eo_per_frame_opt/main.cpp b/examples/two_eo_per_frame_opt/main.cpp
index 43310c0..68d9221 100644
--- a/examples/two_eo_per_frame_opt/main.cpp
+++ b/examples/two_eo_per_frame_opt/main.cpp
@@ -96,7 +96,7 @@ bool Run(int num_eve, int num_dsp, const char* ref_output)
96 96
97 // Heap sizes for this network determined using Configuration::showHeapStats 97 // Heap sizes for this network determined using Configuration::showHeapStats
98 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB 98 c.PARAM_HEAP_SIZE = (3 << 20); // 3MB
99 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB 99 c.NETWORK_HEAP_SIZE = (34 << 20); // 34MB
100 100
101 // Run this example for 16 input frames 101 // Run this example for 16 input frames
102 c.numFrames = 16; 102 c.numFrames = 16;