UbiquitousLearning / End2end-Federated-Learning

A demo of end-to-end federated learning system.
69 stars 32 forks source link

can't start train on Android #6

Open Devil-Ideal opened 2 years ago

Devil-Ideal commented 2 years ago

你好,我在学习你的GitHub项目End2end-Federated-Learning,在实践过程中遇到了一些问题,再将Android设备加入系统后,并没有开始训练,如果你有时间赐教,我将不胜感激。 I encountered some problems during my study of your GitHub project end2end federated learning. After I added the Android device to the system, it didn't start training. If you'd like to give me some advice, I would be more than grateful FL .

Devil-Ideal commented 2 years ago

After checking the code, I found that the compiler marked all c++ code red, but I didn't understand the reason for the error 1%V4B${DQ`4V XTS7CGX)XE details are below: Compiler exited with error code 1: D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe -xc++ --target=aarch64-none-linux-android21 --gcc-toolchain=D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DMNN_USE_LOGCAT -Dmnncore_EXPORTS -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -O0 -fno-limit-debug-info -fPIC D:\Desk\federalLearning\End2end-Federated-Learning-main\Client-Android\app\src\main\jni\mnndatanative.cpp -fpch-preprocess -v -dD -E Android (7019983 based on r365631c3) clang version 9.0.9 (https://android.googlesource.com/toolchain/llvm-project a2a1e703c0edb03ba29944e529ccbf457742737b) (based on LLVM 9.0.9svn) Target: aarch64-none-linux-android21 Thread model: posix InstalledDir: D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin Found candidate GCC installation: D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android\4.9.x Selected GCC installation: D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x Candidate multilib: .;@m64 Selected multilib: .;@m64 Found CUDA installation: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6, version 7.0 "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" -cc1 -triple aarch64-none-linux-android21 -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name mnndatanative.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9" -D MNN_USE_LOGCAT -D mnncore_EXPORTS -D ANDROID -D _FORTIFY_SOURCE=2 -D _CIDR_DEFINITIONS_END -isysroot D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -internal-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 -internal-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include -internal-isystem "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9\include" -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include -O0 -Wformat -fdeprecated-macro -fdebug-compilation-dir "D:\Desk\federalLearning\End2end-Federated-Learning-main\Client-Android\app.cxx\cmake\debug\arm64-v8a" -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -dD -o - -x c++ "D:\Desk\federalLearning\End2end-Federated-Learning-main\Client-Android\app\src\main\jni\mnndatanative.cpp" clang -cc1 version 9.0.9 based upon LLVM 9.0.9svn default target x86_64-w64-windows-gnu ignoring nonexistent directory "D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include" #include "..." search starts here: #include ...> search starts here: D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9\include D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include End of search list. D:\Desk\federalLearning\End2end-Federated-Learning-main\Client-Android\app\src\main\jni\mnndatanative.cpp:10:10: fatal error: 'MNNTrain/DataLoader.hpp' file not found #include DataLoader.hpp> ^~~~~~~~~ 1 error generated. "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" -cc1 -triple aarch64-none-linux-android21 -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name compiler-file4931637219655297403 -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -resource-dir "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9" -D MNN_USE_LOGCAT -D mnncore_EXPORTS -D ANDROID -D _FORTIFYSOURCE=2 -D CIDR_DEFINITIONS_END -isysroot D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot -internal-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 -internal-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include -internal-isystem "D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9\include" -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include -internal-externc-isystem D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include -O0 -Wformat -fdeprecated-macro -fdebug-compilation-dir "D:\Desk\federalLearning\End2end-Federated-Learning-main\Client-Android\app.cxx\cmake\debug\arm64-v8a" -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -dD -o - -x c++ "C:\Users\娓呴鏄庢湀鎴慭\AppData\Local\Temp\compiler-file4931637219655297403" clang -cc1 version 9.0.9 based upon LLVM 9.0.9svn default target x86_64-w64-windows-gnu ignoring nonexistent directory "D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/include" #include "..." search starts here: #include ...> search starts here: D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/c++/v1 D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/local/include D:\AndroidSDKComponents\ndk\21.4.7075529\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\9.0.9\include D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include/aarch64-linux-android D:/AndroidSDKComponents/ndk/21.4.7075529/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/include End of search list.

Devil-Ideal commented 2 years ago

After updating the gradle, the above error is resolved, but the client cannot join the system and is waitin C%`S%UHNS(AYMK6HL_ NC E g

destinyson commented 2 years ago

很抱歉这么晚回复您 我想知道,客户端是在加入系统时卡住的吗?这个时候服务端界面又是什么状态,是否显示加入成功呢?

Sorry for answering you so late. Please tell me, when was the client stunk? When it joined the system? At the same moment, what was the state of server?What did the interface of the server display?