blob: 75f08557b01b81390f6e193b6e55f2b63ce3738e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From: Paul Zander <negril.nx+gentoo@gmail.com>
Subject: [PATCH] samples: include <memory> and <cudnn_graph.h> explicitly
helpers.h uses std::unique_ptr/std::make_unique and the cudnnHandle_t API
but relies on both arriving transitively. Include them directly; <stdexcept>
is unused.
Rebased onto 1.28.0 (upstream added an SPDX header and <vector>).
--- a/samples/cpp/utils/helpers.h
+++ b/samples/cpp/utils/helpers.h
@@ -6,9 +6,10 @@
#pragma once
#include <vector>
-#include <stdexcept>
+#include <memory>
#include <sstream>
+#include <cudnn_graph.h>
#include <cuda_runtime.h>
#include <cuda_fp16.h>
|