-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RPC] Update build support for cross compiling apps/cpp_rpc with OpenCL #6229
Conversation
cd arm_runtime | ||
cmake .. -DCMAKE_CXX_COMPILER="/path/to/cross compiler g++/" | ||
make runtime | ||
- Configure the tvm cmake build with `config.cmake` ensuring that `USE_CPP_RPC` is set to `ON` in the config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should tell users how to cross compile C++ rpc for embed linux platform (like Ubuntu / rasp), not only android.
cc @FrozenGene |
ping @csullivan |
* Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver.
ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
@FrozenGene Thanks for the good suggestions. I updated the documentation and build system for embedded linux to use the same flow as previously described the docs. |
Thanks @csullivan I've verified it and it works. |
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
…CL (apache#6229) * Standardize support for building and cross compiling apps/cpp_rpc. * Add cmake coverage for building the C++ RPC server binary and update documentation. * Add support for linking against custom OpenCL SDK employing a custom find_opencl macro. This can be useful when cross compiling with a custom OpenCL device driver. * Update OpenCL related documentation. * Add embedded linux build instructions to apps/cpp_rpc/README.md and ensure pthread is linked against when OS=Linux is defined. Remove outdated apps/cpp_rpc/Makefile.
Standardize build support for building and cross compiling apps/cpp_rpc with cmake.