Skip to content

Commit f264925

Browse files
authored
[SYCL] Add missing <cstring> header to spirv.hpp (#4157)
The changes in #3815 introduced calls to std::memcpy without including <cstring>, causing some tests to fail. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 9b04f41 commit f264925

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/include/CL/sycl/detail/spirv.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <CL/sycl/detail/type_traits.hpp>
1616
#include <CL/sycl/id.hpp>
1717
#include <CL/sycl/memory_enums.hpp>
18+
#include <cstring>
1819
#include <sycl/ext/oneapi/atomic_enums.hpp>
1920

2021
#ifdef __SYCL_DEVICE_ONLY__

0 commit comments

Comments
 (0)