lhez commented on code in PR #13305:
URL: https://github.com/apache/tvm/pull/13305#discussion_r1016170053
##########
apps/cpp_rpc/CMakeLists.txt:
##########
@@ -32,6 +32,14 @@ if (OS)
endif()
endif()
+if(USE_OPENCL)
+ if (ANDROID_ABI)
+ if($ENV{ANDROID_NDK_MAJOR} VERSION_LESS "23")
+ set_property(TARGET tvm_rpc PROPERTY LINK_FLAGS -fuse-ld=gold)
Review Comment:
With NDK 23 and above and `ld.gold`, the host `ld` will be used. That's why
we have the failure `ld.gold: --no-rosegment: unknown option` - host `ld`
doesn't have this option. My guess is `ld.gold` in older NDK may be able to get
a path to `libOpenCL.so` through host `ld`. I think in @srkreddy1238 's env,
`libOpenCL.so` exists in the host, but not in NDK (I don't think any NDK comes
with `libOpenCL.so`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]