Skip to content

Commit d47dda3

Browse files
authored
[SYCL][NFC] Fix Werror and header include (#5719)
Fixes: #5264 A `Werror` fix and an explicit include of `unordered_map`.
1 parent 962417d commit d47dda3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sycl/plugins/cuda/pi_cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ pi_result _pi_program::build_program(const char *build_options) {
576576
/// query to PI and use cuModuleGetFunction to check for a kernel.
577577
/// Note: Another alternative is to add kernel names as metadata, like with
578578
/// reqd_work_group_size.
579-
std::string getKernelNames(pi_program program) {
579+
std::string getKernelNames(pi_program) {
580580
cl::sycl::detail::pi::die("getKernelNames not implemented");
581581
return {};
582582
}

sycl/plugins/cuda/pi_cuda.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
#include <cassert>
2525
#include <cstring>
2626
#include <cuda.h>
27+
#include <functional>
2728
#include <limits>
29+
#include <mutex>
2830
#include <numeric>
2931
#include <stdint.h>
3032
#include <string>
33+
#include <unordered_map>
3134
#include <vector>
32-
#include <functional>
33-
#include <mutex>
3435

3536
extern "C" {
3637

0 commit comments

Comments
 (0)