randomkang commented on code in PR #3144:
URL: https://github.com/apache/brpc/pull/3144#discussion_r4525859613


##########
src/butil/CMakeLists.txt:
##########
@@ -289,6 +290,11 @@ if(WITH_GLOG)
     list(PREPEND butil_libraries ${GLOG_LIB})
     set(butil_private_libs "-lglog ${butil_private_libs}")
 endif()
+if(WITH_GDR)
+    # gpu_block_pool.cpp is a no-op translation unit without BRPC_WITH_GDR;
+    # only link CUDA libs when GDR is actually enabled.
+    list(APPEND butil_libraries ${CUDA_LIB} ${CUDART_LIB})
+endif()

Review Comment:
   ok



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to