From d2ffc9b9c69f8a729369ab6c59019f6bf74cabed Mon Sep 17 00:00:00 2001 From: Fengtu Wang <1148791151@qq.com> Date: Tue, 16 Dec 2025 18:32:10 +0800 Subject: [PATCH 1/2] fixbug build cuda demo error 1. fix bug build error can not find head file `#include ` 2. when not enable TRACY_ENABLE macro, build error can not find `tracy::CUDACtx` type --- public/tracy/TracyCUDA.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/tracy/TracyCUDA.hpp b/public/tracy/TracyCUDA.hpp index 40ff55dc..e6be03ba 100644 --- a/public/tracy/TracyCUDA.hpp +++ b/public/tracy/TracyCUDA.hpp @@ -12,6 +12,10 @@ #define TracyCUDACollect(ctx) +namespace tracy{ +using CUDACtx = std::nullptr_t; +} // namespace tracy + #else #include @@ -31,7 +35,7 @@ #include #endif -#include +#include "Tracy.hpp>" #ifndef UNREFERENCED #define UNREFERENCED(x) (void)x @@ -1322,4 +1326,4 @@ namespace tracy #endif -#endif \ No newline at end of file +#endif From 4745db155307f91ef7b2c032d5e276a332ba127a Mon Sep 17 00:00:00 2001 From: Fengtu Wang <1148791151@qq.com> Date: Wed, 17 Dec 2025 09:47:19 +0800 Subject: [PATCH 2/2] Fix include statement for Tracy.hpp --- public/tracy/TracyCUDA.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tracy/TracyCUDA.hpp b/public/tracy/TracyCUDA.hpp index e6be03ba..513408b5 100644 --- a/public/tracy/TracyCUDA.hpp +++ b/public/tracy/TracyCUDA.hpp @@ -35,7 +35,7 @@ using CUDACtx = std::nullptr_t; #include #endif -#include "Tracy.hpp>" +#include "Tracy.hpp" #ifndef UNREFERENCED #define UNREFERENCED(x) (void)x