You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "yzh119 (via GitHub)" <gi...@apache.org> on 2023/09/17 07:44:18 UTC

[GitHub] [tvm] yzh119 commented on a diff in pull request #15760: [Runtime][CUDA] NVTX Integration

yzh119 commented on code in PR #15760:
URL: https://github.com/apache/tvm/pull/15760#discussion_r1328057772


##########
cmake/modules/CUDA.cmake:
##########
@@ -81,6 +81,14 @@ if(USE_CUDA)
     list(APPEND RUNTIME_SRCS ${CONTRIB_CURAND_SRC_CU})
   endif(USE_CURAND)
 
+  if(USE_NVTX)
+    message(STATUS "Build with NVTX support")
+    message(STATUS "${CUDA_NVTX_LIBRARY}")
+    cmake_minimum_required(VERSION 3.13) # to compile CUDA code
+    enable_language(CUDA)
+    list(APPEND TVM_RUNTIME_LINKER_LIBS ${CUDA_NVTX_LIBRARY})
+  endif(USE_CURAND)

Review Comment:
   `endif(USE_NVTX)`



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org