• 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/_program.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
"""Deprecated wrapper functions for backward compatibility."""
18

NEW
19
import warnings
×
20

NEW
21
from dpctl.compiler import (
×
22
    SyclKernel,
23
    create_kernel_bundle_from_source,
24
    create_kernel_bundle_from_spirv,
25
)
26

27

NEW
28
def create_program_from_source(q, src, copts=""):
×
29
    """This function is a deprecated alias for
30
    :func:`dpctl.compiler.create_kernel_bundle_from_source`.
31
    New code should use :func:`dpctl.compiler.create_kernel_bundle_from_source`.
32
    """
NEW
33
    warnings.warn(
×
34
        "create_program_from_source is deprecated and will be removed in a "
35
        "future release. Use create_kernel_bundle_from_source instead.",
36
        DeprecationWarning,
37
        stacklevel=2,
38
    )
NEW
39
    return create_kernel_bundle_from_source(q, src, copts)
×
40

41

NEW
42
def create_program_from_spirv(q, IL, copts=""):
×
43
    """This function is a deprecated alias for
44
    :func:`dpctl.compiler.create_kernel_bundle_from_spirv`.
45
    New code should use :func:`dpctl.compiler.create_kernel_bundle_from_spirv`.
46
    """
NEW
47
    warnings.warn(
×
48
        "create_program_from_spirv is deprecated and will be removed in a "
49
        "future release. Use create_kernel_bundle_from_spirv instead.",
50
        DeprecationWarning,
51
        stacklevel=2,
52
    )
NEW
53
    return create_kernel_bundle_from_spirv(q, IL, copts)
×
54

55

NEW
56
__all__ = [
×
57
    "create_program_from_source",
58
    "create_program_from_spirv",
59
    "SyclKernel",
60
]
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