-
Notifications
You must be signed in to change notification settings - Fork 702
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
[NFC][SYCL] Move ap_int to sycl::detail namespace #4822
Conversation
@@ -325,280 +325,280 @@ __SYCL_CONVERGENT__ extern SYCL_EXTERNAL void | |||
__spirv_SubgroupBlockWriteINTEL(__attribute__((opencl_global)) uint64_t *Ptr, | |||
dataT Data) noexcept; | |||
template <int W, int rW> | |||
extern SYCL_EXTERNAL ap_int<rW> | |||
__spirv_FixedSqrtINTEL(ap_int<W> a, bool S, int32_t I, int32_t rI, | |||
extern SYCL_EXTERNAL __ap_int<rW> |
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.
Please do not merge without @tiwaria1 approval
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.
Reviewing today. Apologies for the delay.
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.
LGTM.
47b5514
to
27de8f1
Compare
int32_t Quantization = 0, int32_t Overflow = 0) noexcept; | ||
template <int W, int rW> | ||
extern SYCL_EXTERNAL ap_int<rW> | ||
__spirv_FixedRecipINTEL(ap_int<W> a, bool S, int32_t I, int32_t rI, | ||
extern SYCL_EXTERNAL __ap_int<rW> |
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.
Can we use sycl::detail::ap_int
instead of __ap_int
?
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.
It is not clear what is required by your toolchain.
But yes, it is better if we can just use plain names in some namespaces rather than top-level names, even if they are somehow hidden with __
.
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.
Sure, moved to the namespace.
27de8f1
to
843fa00
Compare
843fa00
to
f71f00a
Compare
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.
LGTM
@MrSidims, can you please address failure in Jenkins/Precommit? |
Sure, I'll take a look |
f71f00a
to
de935d9
Compare
The type isn't used directly by DPCPP programmers. Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
de935d9
to
fb2e68c
Compare
@tiwaria1 please take a look |
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.
OK, so to clarify, now ap_int
is in sycl::detail::ap_int
and there is no __ap_int
, just the sycl::detail::ap_int
? If so this looks good.
I am not sure this qualify an [NFC]
tag. It breaks the API of anyone using the previous ap_int
, so it is a functional change somehow.
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 making the change Dmitry.
The type isn't used directly by DPCPP programmers.
Signed-off-by: Dmitry Sidorov dmitry.sidorov@intel.com