Skip to content

Commit 6861612

Browse files
added license header and explanatory comment
1 parent e1189e5 commit 6861612

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

dpctl/_host_task_util.hpp

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
//===--- _host_tasl_util.hpp - Implements async DECREF =//
2+
//
3+
// Data Parallel Control (dpctl)
4+
//
5+
// Copyright 2020-2021 Intel Corporation
6+
//
7+
// Licensed under the Apache License, Version 2.0 (the "License");
8+
// you may not use this file except in compliance with the License.
9+
// You may obtain a copy of the License at
10+
//
11+
// http://www.apache.org/licenses/LICENSE-2.0
12+
//
13+
// Unless required by applicable law or agreed to in writing, software
14+
// distributed under the License is distributed on an "AS IS" BASIS,
15+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
// See the License for the specific language governing permissions and
17+
// limitations under the License.
18+
//
19+
//===----------------------------------------------------------------------===//
20+
///
21+
/// \file
22+
/// This file implements a utility function to schedule host task to a sycl
23+
/// queue depending on given array of sycl events to decrement reference counts
24+
/// for the given array of Python objects.
25+
///
26+
/// N.B.: The host task attempts to acquire GIL, so queue wait, event wait and
27+
/// other synchronization mechanisms should be called after releasing the GIL to
28+
/// avoid deadlocks.
29+
///
30+
//===----------------------------------------------------------------------===//
31+
132
#include "Python.h"
233
#include "syclinterface/dpctl_data_types.h"
334
#include <CL/sycl.hpp>

0 commit comments

Comments
 (0)