forked from nnstreamer/nntrainer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ FSU ] Enabls Asynchronos FSU for forwarding
This PR enables asynchronos mode for FSU (flash storage utilization) for better performance. It splits the load and unload tensors which make difficult to handle. Also fix the inference execution order when it is in INFERENCE mode and change the trainable option to false when it calls the request weights and tensors. Add the new function to load and unload tensors as well as check load complete. It also considers weight pool and tensor pool differenetly according to the ExecutionMode. It is not use FSU mode for tensor pool for the INFERENCE Mode. Resolves: **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: jijoong.moon <[email protected]>
- Loading branch information
1 parent
9c6723f
commit cd17a66
Showing
21 changed files
with
487 additions
and
157 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
resnet_sources = [ | ||
app_sources = [ | ||
'main.cpp', | ||
cifar_path / 'cifar_dataloader.cpp' | ||
] | ||
|
||
resnet_dependencies = [app_utils_dep, | ||
app_dependencies = [app_utils_dep, | ||
iniparser_dep, | ||
nntrainer_dep, | ||
nntrainer_ccapi_dep | ||
] | ||
|
||
if get_option('enable-test') | ||
resnet_dependencies += [gtest_dep] | ||
app_dependencies += [gtest_dep] | ||
endif | ||
|
||
e = executable('nntrainer_simplefc', | ||
resnet_sources, | ||
app_sources, | ||
include_directories: [include_directories('.'), cifar_include_dir], | ||
dependencies: resnet_dependencies, | ||
dependencies: app_dependencies, | ||
install: get_option('install-app'), | ||
install_dir: application_install_dir | ||
) | ||
|
||
if get_option('enable-long-test') | ||
testenv = environment() | ||
testenv.set('OPENBLAS_NUM_THREADS', '4') | ||
test('app_resnet18', e, args: ['fake', '1', '128', '1'], env: testenv, timeout: 300) | ||
test('app_asynch_fsu', e, args: ['fake', '1', '128', '1'], env: testenv, timeout: 300) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.