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

IntelPython / dpctl / 25460014723

06 May 2026 08:42PM UTC coverage: 75.39% (-0.09%) from 75.476%
25460014723

Pull #2291

github

web-flow
Merge 82736b8e2 into 7caf3dd42
Pull Request #2291: Rename `SyclProgram` to `SyclKernelBundle`

826 of 1148 branches covered (71.95%)

Branch coverage included in aggregate %.

4 of 10 new or added lines in 1 file covered. (40.0%)

3187 of 4175 relevant lines covered (76.34%)

273.42 hits per line

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

50.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** provides a way to create a SYCL kernel
19
from either an OpenCL program represented as a string or a SPIR-V binary
20
file.
21

22
"""
23

24
from ._program import (
1✔
25
    SyclKernel,
26
    SyclKernelBundle,
27
    SyclKernelBundleCompilationError,
28
    create_kernel_bundle_from_source,
29
    create_kernel_bundle_from_spirv,
30
    create_program_from_source,
31
    create_program_from_spirv,
32
)
33

34
__all__ = [
1✔
35
    "create_kernel_bundle_from_source",
36
    "create_kernel_bundle_from_spirv",
37
    "create_program_from_source",
38
    "create_program_from_spirv",
39
    "SyclKernel",
40
    "SyclKernelBundle",
41
    "SyclKernelBundleCompilationError",
42
    "SyclProgram",
43
    "SyclProgramCompilationError",
44
]
45

46

47
def __getattr__(name):
1✔
48
    if name == "SyclProgram":
1!
NEW
49
        from warnings import warn
×
50

NEW
51
        warn(
×
52
            "dpctl.program.SyclProgram is deprecated and will be removed in a "
53
            "future release. Use dpctl.program.SyclKernelBundle instead.",
54
            DeprecationWarning,
55
            stacklevel=2,
56
        )
NEW
57
        return SyclKernelBundle
×
58
    if name == "SyclProgramCompilationError":
1!
NEW
59
        from warnings import warn
×
60

NEW
61
        warn(
×
62
            "dpctl.program.SyclProgramCompilationError is deprecated and will "
63
            "be removed in a future release. Use "
64
            "dpctl.program.SyclKernelBundleCompilationError instead.",
65
            DeprecationWarning,
66
            stacklevel=2,
67
        )
NEW
68
        return SyclKernelBundleCompilationError
×
69
    raise AttributeError(f"module {__name__} has no attribute {name}")
1✔
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