File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+
1
32
#include " Python.h"
2
33
#include " syclinterface/dpctl_data_types.h"
3
34
#include < CL/sycl.hpp>
You can’t perform that action at this time.
0 commit comments