aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Zhao2019-09-27 15:40:26 -0500
committerYuan Zhao2019-09-27 16:37:50 -0500
commitcf9ade57aa4214900a117fe8cf228aedb30210c9 (patch)
tree2e4fff5d2ec4e91dd44b6e1b422cd0706fc4bdc2
parentdaab76f080acf265349a574e4cc825368dd803aa (diff)
downloadtidl-api-cf9ade57aa4214900a117fe8cf228aedb30210c9.tar.gz
tidl-api-cf9ade57aa4214900a117fe8cf228aedb30210c9.tar.xz
tidl-api-cf9ade57aa4214900a117fe8cf228aedb30210c9.zip
Revert "Adjust example heap sizes with new TIDL library"
This reverts commit c3786ddb01e187a983811d1cd3e08f6dfa20dd2e.
-rw-r--r--docs/source/example.rst4
-rw-r--r--examples/one_eo_per_frame/main.cpp2
-rw-r--r--examples/two_eo_per_frame/main.cpp2
-rw-r--r--examples/two_eo_per_frame_opt/main.cpp2
4 files changed, 3 insertions, 7 deletions
diff --git a/docs/source/example.rst b/docs/source/example.rst
index 669020f..9c696ad 100644
--- a/docs/source/example.rst
+++ b/docs/source/example.rst
@@ -276,10 +276,6 @@ 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``.
283 279
284.. _mnist-example: 280.. _mnist-example:
285 281
diff --git a/examples/one_eo_per_frame/main.cpp b/examples/one_eo_per_frame/main.cpp
index c8000d1..8872c06 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 = (34 << 20); // 34MB 103 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB
104 104
105 c.numFrames = 16; 105 c.numFrames = 16;
106 106
diff --git a/examples/two_eo_per_frame/main.cpp b/examples/two_eo_per_frame/main.cpp
index f309d4e..d1aa6dc 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 = (34 << 20); // 34MB 94 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB
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 68d9221..43310c0 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 = (34 << 20); // 34MB 99 c.NETWORK_HEAP_SIZE = (20 << 20); // 20MB
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;