Skip to content

Commit a9240a2

Browse files
Miscellaneous fixes
1 parent e2d4dff commit a9240a2

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

sycl/include/sycl/ext/oneapi/dot_product.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
#pragma once
1212

13+
#include <sycl/detail/defines_elementary.hpp>
14+
#include <sycl/types.hpp>
15+
1316
__SYCL_INLINE_NAMESPACE(cl) {
1417
namespace sycl {
1518
namespace ext {

sycl/plugins/cuda/pi_cuda.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <cuda.h>
3434
#include <functional>
3535
#include <limits>
36+
#include <memory>
3637
#include <mutex>
3738
#include <numeric>
3839
#include <stdint.h>

sycl/source/detail/device_global_map_entry.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88

99
#pragma once
1010

11+
#include <cassert>
1112
#include <cstdint>
1213
#include <map>
1314
#include <mutex>
1415

16+
#include <sycl/detail/defines_elementary.hpp>
17+
1518
__SYCL_INLINE_NAMESPACE(cl) {
1619
namespace sycl {
1720
namespace detail {
1821

1922
// Forward declaration
2023
class device_impl;
24+
class context_impl;
2125

2226
struct DeviceGlobalMapEntry {
2327
// The unique identifier of the device_global.

sycl/source/detail/platform_util.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#pragma once
1010

1111
#include <cstdint>
12+
13+
#include <stddef.h> // for ::size_t
14+
1215
#include <sycl/detail/defines.hpp>
1316

1417
#ifdef _MSC_VER

sycl/test/basic_tests/kernel_size_mismatch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Tests for static assertion failure when kernel lambda mismatches between host
44
// and device.
55

6-
#include <CL/sycl.hpp>
6+
#include <sycl/sycl.hpp>
77

88
int main() {
99
sycl::queue Q;
@@ -13,7 +13,7 @@ int main() {
1313
(void)A;
1414
// expected-no-diagnostics
1515
#else
16-
// expected-error-re@CL/sycl/handler.hpp:* {{static_assert failed due to requirement '{{.*}}' "Unexpected kernel lambda size. This can be caused by an external host compiler producing a lambda with an unexpected layout. This is a limitation of the compiler."}}
16+
// expected-error-re@sycl/handler.hpp:* {{static_assert failed due to requirement '{{.*}}' "Unexpected kernel lambda size. This can be caused by an external host compiler producing a lambda with an unexpected layout. This is a limitation of the compiler."}}
1717
#endif
1818
}).wait();
1919
}

0 commit comments

Comments
 (0)