• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpctl / 26348174286

24 May 2026 01:07AM UTC coverage: 75.023%. First build
26348174286

Pull #2317

github

web-flow
Merge c82fa8690 into e2e482619
Pull Request #2317: Move and deprecate dpctl program

856 of 1198 branches covered (71.45%)

Branch coverage included in aggregate %.

4 of 19 new or added lines in 4 files covered. (21.05%)

3283 of 4319 relevant lines covered (76.01%)

265.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/dpctl/program/__init__.py
1
#                      Data Parallel Control (dpctl)
2
#
3
# Copyright 2020-2025 Intel Corporation
4
#
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
# you may not use this file except in compliance with the License.
7
# You may obtain a copy of the License at
8
#
9
#    http://www.apache.org/licenses/LICENSE-2.0
10
#
11
# Unless required by applicable law or agreed to in writing, software
12
# distributed under the License is distributed on an "AS IS" BASIS,
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16

17
"""
18
**Data Parallel Control Program** (deprecated) provides a way to create a SYCL
19
kernel from either an OpenCL program represented as a string or a SPIR-V binary
20
file.
21

22
.. deprecated::
23
   The dpctl.program module is deprecated. Use dpctl.compiler instead.
24

25
"""
26

NEW
27
import warnings
×
28

NEW
29
from dpctl.compiler import (
×
30
    SyclKernel,
31
    SyclKernelBundle,
32
    SyclKernelBundleCompilationError,
33
)
NEW
34
from dpctl.program._program import (
×
35
    create_program_from_source,
36
    create_program_from_spirv,
37
)
38

39
__all__ = [
×
40
    "create_program_from_source",
41
    "create_program_from_spirv",
42
    "SyclKernel",
43
    "SyclProgram",
44
    "SyclProgramCompilationError",
45
]
46

47

NEW
48
warnings.warn(
×
49
    "dpctl.program is deprecated and will be removed in a future release. "
50
    "Use dpctl.compiler instead.",
51
    DeprecationWarning,
52
    stacklevel=2,
53
)
54

55

56
def __getattr__(name):
×
57
    if name == "SyclProgram":
×
NEW
58
        warnings.warn(
×
59
            "dpctl.program.SyclProgram is deprecated and will be removed in a "
60
            "future release. Use dpctl.compiler.SyclKernelBundle instead.",
61
            DeprecationWarning,
62
            stacklevel=2,
63
        )
64
        return SyclKernelBundle
×
65
    if name == "SyclProgramCompilationError":
×
NEW
66
        warnings.warn(
×
67
            "dpctl.program.SyclProgramCompilationError is deprecated and will "
68
            "be removed in a future release. Use "
69
            "dpctl.compiler.SyclKernelBundleCompilationError instead.",
70
            DeprecationWarning,
71
            stacklevel=2,
72
        )
73
        return SyclKernelBundleCompilationError
×
74
    raise AttributeError(f"module {__name__} has no attribute {name}")
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc