| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Is this moving functionality from the other header as is or rewriting + making changes? If we are moving code and keeping the namespace and everything the same, that is one type of review where we just need to insure that all existing SYCLomatic code can still see the new location, and it is successfully unchanged, etc. If we are doing more than just moving code, then we need to review it as "new code", and also figure out how it fits with what is already there. It would be good to make this clear in the description of the PR (without requiring the context of the email discussion to understand it). |
Sorry, something went wrong.
Yes added description - this is mainly a step for removing the existing sort & exchange coop-group apis from dpct extensions namespace to group_utils namespace without changing any functionality. |
Sorry, something went wrong.
There was a problem hiding this comment.
I'd like to include group_utils.h in dpct/dpl_utils.h, so this PR will not breaking any existing code.
Sorry, something went wrong.
| // | ||
| //===----------------------------------------------------------------===// | ||
|
|
||
| #ifndef __DPCT_DPCPP_EXTENSIONS_H__ |
There was a problem hiding this comment.
The include guard name should be changed since it is currently mirroring the macro name in the dpcpp_extensions.h file.
Sorry, something went wrong.
| #include "dpl_extras/numeric.h" | ||
| #include "dpl_extras/dpcpp_extensions.h" | ||
| #include "dpl_extras/iterators.h" | ||
| #include "dpl_extras/memory.h" |
There was a problem hiding this comment.
It looks like except for the added #include "group_utils.hpp", the other changes are just shifting the order of the includes. Does this matter or can we restore these unneeded changes?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes this was caused by the format issue, let me revert to original.
Sorry, something went wrong.
|
|
||
| #include "dpct.hpp" | ||
| #include "dpl_extras/dpcpp_extensions.h" | ||
| #include "functional.h" |
There was a problem hiding this comment.
I believe this should be "dpl_extras/functional.h"
Sorry, something went wrong.
|
Basically LGTM. You should check https://github.com/oneapi-src/SYCLomatic/blob/SYCLomatic/clang/lib/DPCT/HeaderTypes.inc as well to see if it needs to add a new entry. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, @danhoeflinger @mmichel11 Can you please take another look?
Sorry, something went wrong.
| const std::string LapackUtilsAllContentStr = | ||
| #include "clang/DPCT/lapack_utils.hpp.inc" | ||
| ; | ||
| const std::string GroupUtilsAllContentStr = |
There was a problem hiding this comment.
I'm not sure about why, but you may need to add a similar line to this to follow the example of LapackUtilsAllContentStr:
(still failing the lit check)
Sorry, something went wrong.
There was a problem hiding this comment.
Added , but still fails in lit.
Sorry, something went wrong.
|
I don't see any issues within group_utils.hpp header, so once the header addition issues are resolved this PR LGTM. |
Sorry, something went wrong.
Co-authored-by: Dan Hoeflinger <109972525+danhoeflinger@users.noreply.github.com>
Co-authored-by: Dan Hoeflinger <109972525+danhoeflinger@users.noreply.github.com>
|
@yihanwg @zhimingwang36 could you help with the lit failure issue in CI ? Thanks. |
Sorry, something went wrong.
Sure, let me take a look. [update] Fixed. |
Sorry, something went wrong.
Signed-off-by: Wang, Yihan <yihan.wang@intel.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
From email discussion on SYCLcompat for cooperative group apis, this is created to add all header algorithms related to block/warp for sycl.
This PR only replaces the group apis - exchange and sort (from these PRs : #1562 & #1483 ) which were added to the dpct_extensions.h file to group_utils.h file. No other changes apart from removing the existing code from extensions to the group_utils.h file. Correspondingly the tests related to PRs oneapi-src/SYCLomatic-test#601 & oneapi-src/SYCLomatic-test#594 need to be updated accordingly with respect to the changes in namespace only. The aim of this PR is only to remove the functionality from extensions namespace to group_utils namespace.
cc @danhoeflinger @mmichel11 @zhimingwang36 @yihanwg