Add a CMake option to build RDC library only
When RDC are only used as the libraries, the user can choose not to build
the rdci and rdcd, which will remove the dependencies to the gRPC and protoc.
The -DBUILD_STANDALONE=off should be pass to the cmake.
* Change README.md for the instructions.
* Move the python_binding installation from client/CMakeLists.txt to CMakeLists.txt
so that the RDC library only build will also install the folder.
* Change CMakeLists.txt and rdc_libs/CMakeLists.txt to build with gRPC only if
the BUILD_STANDALONE is enabled.
Change-Id: If9cfe9fc298a83636d85fe352a311fe2fe041661
[ROCm/rdc commit: 105675aeeb]
This commit is contained in:
@@ -69,6 +69,12 @@ Clone the RDC source code from GitHub and use CMake to build and install
|
||||
$ make
|
||||
$ make install ## default installation location is /opt/rocm
|
||||
|
||||
## Building RDC library only without gRPC (optional)
|
||||
|
||||
If only the RDC libraries are needed (i.e. only "embedded mode" is required), the user can choose to not build rdci and rdcd. This will eliminate the need for gRPC and protoc. To build in this way, -DBUILD_STANDALONE=off should be passed on the the cmake command line:
|
||||
|
||||
$ cmake -DROCM_DIR=/opt/rocm -DBUILD_STANDALONE=off <-DCMAKE_INSTALL_PREFIX=<install dir>> ..
|
||||
|
||||
## Update System Library Path
|
||||
|
||||
The following commands need to be executed as root (sudo). It may be easiest to put them into a script and then run that script as root:
|
||||
|
||||
Reference in New Issue
Block a user