-
Notifications
You must be signed in to change notification settings - Fork 171
Add hipSYCL scope_handle and host_task #122
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
Add hipSYCL scope_handle and host_task #122
Conversation
What is the purpose of half.txt? That seems like a global search and replace of all "half" texts in the library. |
Half.txt is only necessary as a temporary solution until EDIT: |
So, we need to apply the half.txt patch to be able to test this PR? If yes, I would suggest first submitting the PR needed for updating the half namespace. Once it is reviewed and merged, I suggest submitting the following PRs. |
You should be able to test this PR with dpc++ without applying the
That was the original purpose of the #105 I believe you mentioned in the conversation that you would like to change the namespace yourself. Do you have any information on when this change will approximately get merged?
Pinging @illuhad for information on that |
Of couse you could just have something like
in some commonly used oneMKL header to import I'd prefer not to apply such a workaround to hipSYCL itself, as hipSYCL follows the SYCL standard by putting |
Hi @sbalint98 we also would like to adopt SYCL2020 going forward, however, the current oneMKL version supported this repo is 2021.4 base tool kit, and i am worried sycl::half might not be supported in this version yet. |
I agree completely, I have added the change proposed by @illuhad to the |
Hi @mmeterel , I think this PR is ready, could you have a look? |
Hi @sbalint98 thanks for the PR. I am currently doing some local tests on the PR. Will get back to you soon. |
@sbalint98 Could you please rebase your branch with latest develop and test with latest llvm compiler? Your branch still has sycl::vector_class calls which are not supported in recent llvm compilers. |
…mpiling with hipSYCL
Dpcpp does not consider GPUs accelerators, while hipSYCL does. In order to make sure that the GPU tests are run for both of the compilers, ifdefs are added
70e1f17
to
5b4b8b6
Compare
@sbalint98 Please let me know when you complete this. I would like to do another round of tests after this. |
It has been rebased to develop already, let me know if something doesn't seem right! |
Oh ok, looks like I missed the rebase commit. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and all the updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
Description
This PR adds hipSYCL support to oneMKL by providing a specific scope_handler. As discussed here hipSYCL has the
half
datatype in thecl::sycl::
namespace; Therore to compile successfully the following patch needs to be applied: half.txtChecklist
All Submissions
hipsycl_cuda_host.log
dpcpp-hand-test.log