From 0e7a4694e50f0b7556015f81ccee362caeb4a3c6 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 13 Oct 2026 12:03:42 +0200 Subject: [PATCH] mtp: the draft graph node listing (STRATA_VERIFY_NODES) is CUDA/HIP only; the Metal build had no cudaGraphNodeGetType (merge fallout of f-latency into the Mac branch) --- src/core/mtp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/mtp.cpp b/src/core/mtp.cpp index c550c732..c36841c6 100644 --- a/src/core/mtp.cpp +++ b/src/core/mtp.cpp @@ -815,6 +815,9 @@ MtpProf g_mp; // STRATA_VERIFY_NODES=1 also lists the draft graphs' nodes (kernel names on HIP; counts on CUDA) void mtp_list_nodes(cudaGraph_t graph, const char* what) { if (std::getenv("STRATA_VERIFY_NODES") == nullptr || graph == nullptr) return; +#if defined(STRATA_GPU_METAL) + (void) what; // Metal has no graph nodes to list +#else #if defined(STRATA_USE_HIP) using NodeT = hipGraphNode_t; using NodeTypeT = hipGraphNodeType; @@ -856,6 +859,7 @@ void mtp_list_nodes(cudaGraph_t graph, const char* what) { std::fprintf(stderr, "strata mtp: the %s graph has %zu nodes:", what, nn); for (auto& k : kinds) std::fprintf(stderr, "\n %4d x %.110s", k.second, k.first.c_str()); std::fprintf(stderr, "\n"); +#endif } } // namespace