Skip to content

Commit 33aea69

Browse files
authored
[SYCL] Update free_function_commands.hpp (#20727)
Add copyright header and move include under the macro.
1 parent 22c4257 commit 33aea69

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

sycl/include/sycl/khr/free_function_commands.hpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1+
//===----------------------------------------------------------------------===//
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+
//===----------------------------------------------------------------------===//
8+
///
9+
/// \file
10+
/// This file contains the implementation of the sycl_khr_free_function_commands
11+
/// extension.
12+
///
13+
//===----------------------------------------------------------------------===//
114
#pragma once
215

16+
#ifdef __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
17+
318
#include <sycl/ext/oneapi/experimental/enqueue_functions.hpp>
419

520
namespace sycl {
621
inline namespace _V1 {
7-
8-
#ifdef __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
922
namespace khr {
1023

1124
template <typename CommandGroupFunc>
@@ -558,6 +571,6 @@ inline void event_barrier(const queue &q, const std::vector<event> &events,
558571
}
559572

560573
} // namespace khr
561-
#endif
562574
} // namespace _V1
563575
} // namespace sycl
576+
#endif

0 commit comments

Comments
 (0)