Skip to content
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

Declare predefined dpcpp_default and dpcpp fpga policies as const #1671

Conversation

SergeyKopienko
Copy link
Contributor

@SergeyKopienko SergeyKopienko commented Jul 5, 2024

In this PR Declare predefined dpcpp_default and dpcpp fpga policies as const.

I hope it's may help to implement move-constructor and move-assignment in the PR #1652 properly.

PR with the changes for oneDPL specification: uxlfoundation/oneAPI-spec#554

…dpcpp_default as const

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
…dpcpp_fpga as const

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
@SergeyKopienko SergeyKopienko changed the title Declare dpcpp default and dpcpp fpga as const Declare predefined dpcpp_default and dpcpp fpga policies as const Jul 5, 2024
@SergeyKopienko SergeyKopienko marked this pull request as ready for review July 5, 2024 15:58
…cpp_fpga now declared as const

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
documentation/CHANGES.rst Outdated Show resolved Hide resolved
…t and dpcpp_fpga now declared as const"

This reverts commit c1c778f.
@dcbenito
Copy link
Contributor

dcbenito commented Jul 9, 2024

We will need to update the docs if this change happens.

I did a quick search and found that we cite device_policy in the following pages: Execution Policies, Macros, Pass Data to Algorithms. We cite fpga_policy in the following pages: Execution Policies and Macros.

As long as I have guidance, I will update the docs as needed.

@SergeyKopienko SergeyKopienko added this to the 2022.7.0 milestone Jul 10, 2024
SergeyKopienko and others added 5 commits July 10, 2024 14:05
@akukanov
Copy link
Contributor

@dcbenito, @SergeyKopienko - I have added the documentation changes to the pull request, please take a look.

dcbenito
dcbenito previously approved these changes Jul 31, 2024
Copy link
Contributor

@dcbenito dcbenito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one change, but otherwise LGTM.

@@ -94,8 +94,8 @@ Macro Description
such as ``dpcpp_default`` and ``dpcpp_fpga``. When the macro is not defined (by default)
or evaluates to non-zero, predefined policies objects can be used.
When the macro is set to 0, predefined policies objects and make functions
without arguments, when ``make_device_policy()``,
``make_fpga_policy()``, are not available.
without arguments - ``make_device_policy()`` and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the dashes - to parentheses (): "without arguments (make_device_policy() and make_fpga_policy()) are not available."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

…hange the dashes - to parentheses (): "without arguments (make_device_policy() and make_fpga_policy()) are not available."

Signed-off-by: Sergey Kopienko <sergey.kopienko@intel.com>
Copy link
Contributor

@dcbenito dcbenito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as discussed, lets wait for the spec change to go through before merging.

@akukanov
Copy link
Contributor

akukanov commented Aug 6, 2024

I have committed the changes to the specification: uxlfoundation/oneAPI-spec#554

@SergeyKopienko SergeyKopienko merged commit aec12a4 into main Aug 6, 2024
21 checks passed
@SergeyKopienko SergeyKopienko deleted the dev/skopienko/declare_dpcpp_default_and_dpcpp_fpga_as_const branch August 6, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants