oneapi-src / oneDPL

oneAPI DPC++ Library (oneDPL) https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/dpc-library.html
Apache License 2.0
715 stars 112 forks source link

Declare predefined `dpcpp_default` and `dpcpp fpga` policies as `const` #1671

Open SergeyKopienko opened 1 week ago

SergeyKopienko commented 1 week ago

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 https://github.com/oneapi-src/oneDPL/pull/1652 properly.

PR with the changes for oneDPL specification: https://github.com/uxlfoundation/oneAPI-spec/pull/554

dcbenito commented 3 days ago

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.