[DOCS]Update new backend guide to support the latest develop#593
[DOCS]Update new backend guide to support the latest develop#593vmalia wants to merge 7 commits intouxlfoundation:developfrom
Conversation
|
I am curious, have you tried to add a dummy backend and compile the files generated by the python scripts?
|
| <other domains>/ | ||
|
|
||
| Note: The actual structure may be different than what is shown here. To ensure your addition of a new backend is correct, verify that the above scripts correctly generate sample header files from the new files you have added. | ||
|
|
There was a problem hiding this comment.
MIght as well use the rST note role:
.. note::
The actual structure…
…
I did try that with BLAS, as mentioned in the document and saw some issues during the CMake configure steps. I believe that part is dependent on the backend library being used/ported, so the existing documentation may not be very useful beyond the generation of the CMake config file. There is room for improvement here.
The problem I see here is that each of the domains like BLAS, DFT etc have different ways of implementing the headers and the API declarations. This requires a different layout, which the scripts cannot manage at this time to the extent of being helpful for other domains than BLAS. I agree with your POV that the My recommendation is that we update the document as per this PR for now (it still works), and then have a community poll to decide if we want to keep these generation scripts or not. If the consensus is to keep them, we may try to tailor them to support the specific differences of each domain as described in the oneMKL Specification, else remove them in a separate PR. What do you think? |
That's fine with me.
I agree, this is part of the issue. The way I see it we have 3 different kinds of domains today:
|
The poll is now active: #598 |
docs/create_new_backend.rst
Outdated
| .. note:: | ||
| The actual structure may be different than what is shown here. To ensure your addition of a new backend is correct, verify that the above scripts correctly generate sample header files from the new files you have added. |
There was a problem hiding this comment.
Do we still need this note after the removal of the scripts?
| + #endif | ||
|
|
||
| Now you can build and run functional testing for enabled third-party libraries (for more information see `Build with cmake <../README.md#building-with-cmake>`_). | ||
| Now you can build and run functional testing for enabled third-party libraries (for more information see `Building the Project with DPC++ <https://oneapi-src.github.io/oneMKL/building_the_project_with_dpcpp.html>`_). |
There was a problem hiding this comment.
see "Building and Running Tests"?
Description
It was found that the create_new_backend.rst document is outdated and the instructions do not work with the current develop branch.
Solution/Changes