From e965ccc1a2ccc0ca6681f81a21ca5268535db236 Mon Sep 17 00:00:00 2001 From: gongchensu Date: Fri, 10 Jul 2026 02:53:47 +0000 Subject: [PATCH] fix: remove unverified Iluvatar graph support --- src/native/cuda/iluvatar/runtime_.h | 45 +++-------------------------- tests/CMakeLists.txt | 2 -- 2 files changed, 4 insertions(+), 43 deletions(-) diff --git a/src/native/cuda/iluvatar/runtime_.h b/src/native/cuda/iluvatar/runtime_.h index 5c7facc..9425559 100644 --- a/src/native/cuda/iluvatar/runtime_.h +++ b/src/native/cuda/iluvatar/runtime_.h @@ -14,20 +14,13 @@ namespace infini::rt::runtime { template <> struct Runtime - : GraphRuntime, - CudaRuntime>> { + : CudaRuntime> { using Error = cudaError_t; using Stream = cudaStream_t; - using Graph = cudaGraph_t; - - using GraphExec = cudaGraphExec_t; - using Event = cudaEvent_t; - using StreamCaptureMode = cudaStreamCaptureMode; - static constexpr Device::Type kDeviceType = Device::Type::kIluvatar; static constexpr Error kSuccess = cudaSuccess; @@ -84,7 +77,9 @@ struct Runtime return cudaMemsetAsync(std::forward(args)...); }; - static constexpr auto StreamCreate = cudaStreamCreate; + static constexpr auto StreamCreate = [](auto&&... args) { + return cudaStreamCreate(std::forward(args)...); + }; static constexpr auto StreamDestroy = [](auto&&... args) { return cudaStreamDestroy(std::forward(args)...); @@ -125,38 +120,6 @@ struct Runtime static constexpr auto EventElapsedTime = [](auto&&... args) { return cudaEventElapsedTime(std::forward(args)...); }; - - static constexpr auto kStreamCaptureModeGlobal = cudaStreamCaptureModeGlobal; - - static constexpr auto kStreamCaptureModeThreadLocal = - cudaStreamCaptureModeThreadLocal; - - static constexpr auto kStreamCaptureModeRelaxed = - cudaStreamCaptureModeRelaxed; - - static constexpr auto StreamBeginCapture = [](auto&&... args) { - return cudaStreamBeginCapture(std::forward(args)...); - }; - - static constexpr auto StreamEndCapture = [](auto&&... args) { - return cudaStreamEndCapture(std::forward(args)...); - }; - - static constexpr auto GraphDestroy = [](auto&&... args) { - return cudaGraphDestroy(std::forward(args)...); - }; - - static constexpr auto GraphInstantiate = [](auto&&... args) { - return cudaGraphInstantiate(std::forward(args)...); - }; - - static constexpr auto GraphExecDestroy = [](auto&&... args) { - return cudaGraphExecDestroy(std::forward(args)...); - }; - - static constexpr auto GraphLaunch = [](auto&&... args) { - return cudaGraphLaunch(std::forward(args)...); - }; }; static_assert(Runtime::Validate()); diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 437c3ae..88362f6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -65,8 +65,6 @@ if(WITH_ILUVATAR) ILUVATAR infini::rt::Device::Type::kIluvatar infini/rt/iluvatar/runtime_.h 1 1 1 1 1 1 1 1) - add_infini_rt_backend_graph_test( - ILUVATAR infini::rt::Device::Type::kIluvatar 1) endif() if(WITH_HYGON)