-
Notifications
You must be signed in to change notification settings - Fork 40
Move and deprecate dpctl program #2317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
2ebb2fa
11120b4
23877d3
df0e09c
105ed1b
31bdaa3
d8ea4b3
b47359e
48d5032
a710a14
0042202
e0ab7a3
dfd7691
8e34190
54198c4
3ccfb2f
3e4e76a
21cbdd6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||
| .. _dpctl_compiler_pyapi: | ||||||
|
|
||||||
| :py:mod:`dpctl.compiler` | ||||||
| ======================== | ||||||
|
|
||||||
| :py:mod:`dpctl.compiler` provides a way to create a SYCL kernel | ||||||
| from either an OpenCL* program source code represented as a string | ||||||
| or a SPIR-V binary file. | ||||||
|
|
||||||
| It implements creation of interoperability | ||||||
| ``sycl::kernel_bundle<sycl::bundle_state::executable>`` (a collection of kernels), | ||||||
| as well as creation of individual ``sycl::kernel``, suitable for submission for | ||||||
| execution via :py:meth:`dpctl.SyclQueue.submit`. | ||||||
|
|
||||||
| .. py:module:: dpctl.compiler | ||||||
|
|
||||||
| .. currentmodule:: dpctl.compiler | ||||||
|
|
||||||
| .. autosummary:: | ||||||
| :toctree: generated | ||||||
| :nosignatures: | ||||||
|
|
||||||
| create_kernel_bundle_from_source | ||||||
| create_kernel_bundle_from_spirv | ||||||
| create_kernel_bundle_from_sycl_source | ||||||
| is_sycl_source_compilation_available | ||||||
|
|
||||||
| .. autosummary:: | ||||||
| :toctree: generated | ||||||
| :nosignatures: | ||||||
|
|
||||||
| SyclKernelBundle | ||||||
| SyclKernel | ||||||
| SpecializationConstant | ||||||
|
|
||||||
| .. autosummary:: | ||||||
|
ndgrigorian marked this conversation as resolved.
|
||||||
| :toctree: generated | ||||||
| :nosignatures: | ||||||
|
|
||||||
| SyclKernelBundleCompilationError | ||||||
|
|
||||||
| :py:mod:`dpctl.program.utils` | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ----------------------------- | ||||||
|
|
||||||
| .. py:module:: dpctl.program.utils | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| .. currentmodule:: dpctl.program.utils | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| .. autofunction:: parse_spirv_specializations | ||||||
|
|
||||||
| .. autoclass:: SpecializationConstantInfo | ||||||
| :members: | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,6 +135,7 @@ | |
| # add submodules | ||
| __all__ += [ | ||
| "memory", | ||
| "compiler", | ||
| "program", | ||
| "utils", | ||
| ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
|
|
||
| file(GLOB _cython_sources *.pyx) | ||
| foreach(_cy_file ${_cython_sources}) | ||
| get_filename_component(_trgt ${_cy_file} NAME_WLE) | ||
| build_dpctl_ext(${_trgt} ${_cy_file} "dpctl/program" RELATIVE_PATH "..") | ||
| build_dpctl_ext(${_trgt} ${_cy_file} "dpctl/compiler" RELATIVE_PATH "..") | ||
| target_link_libraries(DpctlCAPI INTERFACE ${_trgt}_headers) | ||
| endforeach() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Data Parallel Control (dpctl) | ||
| # | ||
| # Copyright 2020 Intel Corporation | ||
| # Copyright 2020-2025 Intel Corporation | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
|
|
@@ -18,8 +18,13 @@ | |
| # cython: language_level=3 | ||
|
|
||
| """Declares the extension types and functions for the Cython API | ||
| implemented in dpctl.program._program.pyx. | ||
| implemented in dpctl.compiler._compiler.pyx. | ||
| """ | ||
|
|
||
|
|
||
| from dpctl.program._program cimport * | ||
| from dpctl.compiler._compiler cimport ( | ||
| SyclKernel, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing |
||
| SyclKernelBundle, | ||
| create_kernel_bundle_from_source, | ||
| create_kernel_bundle_from_spirv, | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.