Skip to content

Commit

Permalink
[SYCL] Add missing <cstring> header to spirv.hpp (#4157)
Browse files Browse the repository at this point in the history
The changes in #3815 introduced calls to std::memcpy without including
<cstring>, causing some tests to fail.

Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook authored Jul 21, 2021
1 parent 9b04f41 commit f264925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sycl/include/CL/sycl/detail/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <CL/sycl/detail/type_traits.hpp>
#include <CL/sycl/id.hpp>
#include <CL/sycl/memory_enums.hpp>
#include <cstring>
#include <sycl/ext/oneapi/atomic_enums.hpp>

#ifdef __SYCL_DEVICE_ONLY__
Expand Down

0 comments on commit f264925

Please sign in to comment.