Is any plan to develop and merge dpct library like cuda_runtime_api.h? #14285
alanzhai219
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I completely agree. Please open this as an issue in the most appropriate repo (sycl spec repo): https://github.com/KhronosGroup/SYCL-Docs/issues |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As we all know that
sycl/sycl.hpp
is not very friendly if we compare it withcuda_runtime_api.h
. We always code a long long function to get some results, right? for examplewarpSize
it.get_sub_group().get_local_range().get(0)
Do you think it looks elegant? It looks very obscure. We should avoid hard code in the design but sycl spec has lots of hard code 0/1/2. So I create some macro to replace it. https://github.com/alanzhai219/sycl_help_header/blob/main/sycl_help_api.hppIn order to help developers understand and develop the sycl quickly, why not design a runtime level api like nvidia's cuda_runtime_api does?
Looks dpct has implemented some of these esay-used api but not enough.
How do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions