Skip to content

Commit 5ecba34

Browse files
committed
[SYCL] Update free_function_commands.hpp
Add copyright header and move include under the macro.
1 parent 66b3b53 commit 5ecba34

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

sycl/include/sycl/khr/free_function_commands.hpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
//== free_function_commands.hpp - sycl_khr_free_function_commands extension ==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
18
#pragma once
29

10+
#ifdef __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
11+
312
#include <sycl/ext/oneapi/experimental/enqueue_functions.hpp>
413

514
namespace sycl {
615
inline namespace _V1 {
7-
8-
#ifdef __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
916
namespace khr {
1017

1118
template <typename CommandGroupFunc>
@@ -558,6 +565,6 @@ inline void event_barrier(const queue &q, const std::vector<event> &events,
558565
}
559566

560567
} // namespace khr
561-
#endif
562568
} // namespace _V1
563569
} // namespace sycl
570+
#endif

0 commit comments

Comments
 (0)