fixbug build cuda demo error

1. fix bug build error can not find head file `#include <tracy/Tracy.hpp>`
2.  when not enable TRACY_ENABLE macro, build error  can not find  `tracy::CUDACtx` type
This commit is contained in:
Fengtu Wang
2025-12-16 18:32:10 +08:00
committed by GitHub
parent 0e3b3c57fc
commit d2ffc9b9c6

View File

@@ -12,6 +12,10 @@
#define TracyCUDACollect(ctx)
namespace tracy{
using CUDACtx = std::nullptr_t;
} // namespace tracy
#else
#include <cupti.h>
@@ -31,7 +35,7 @@
#include <cxxabi.h>
#endif
#include <tracy/Tracy.hpp>
#include "Tracy.hpp>"
#ifndef UNREFERENCED
#define UNREFERENCED(x) (void)x
@@ -1322,4 +1326,4 @@ namespace tracy
#endif
#endif
#endif