This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new 692a41a  fix: add unified_api.h include to device_guard.h (#405)
692a41a is described below

commit 692a41a3a221897501e145a0c102ab8b055bc1e7
Author: Yaxing Cai <[email protected]>
AuthorDate: Tue Jan 13 02:02:22 2026 +0800

    fix: add unified_api.h include to device_guard.h (#405)
    
    The `include/tvm/ffi/extra/cuda/device_guard.h` misses `#include
    <tvm/ffi/extra/cuda/internal/unified_api.h>` after #300, would cause
    `TVM_FFI_CHECK_CUDA_ERROR` undefined error.
---
 include/tvm/ffi/extra/cuda/device_guard.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tvm/ffi/extra/cuda/device_guard.h 
b/include/tvm/ffi/extra/cuda/device_guard.h
index 0158688..1b44cf6 100644
--- a/include/tvm/ffi/extra/cuda/device_guard.h
+++ b/include/tvm/ffi/extra/cuda/device_guard.h
@@ -23,7 +23,7 @@
 #ifndef TVM_FFI_EXTRA_CUDA_DEVICE_GUARD_H_
 #define TVM_FFI_EXTRA_CUDA_DEVICE_GUARD_H_
 
-#include <tvm/ffi/extra/cuda/base.h>
+#include <tvm/ffi/extra/cuda/internal/unified_api.h>
 
 namespace tvm {
 namespace ffi {

Reply via email to