-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix uid generation and usage #1
fix uid generation and usage #1
Conversation
@@ -32,7 +32,7 @@ namespace alpaka | |||
namespace detail | |||
{ | |||
//############################################################################# | |||
// Based on the code from Filip Ros�en at http://b.atch.se/posts/constexpr-counter/ | |||
// Based on the code from Filip Ros�en at http://b.atch.se/posts/constexpr-counter/ |
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.
Could you replace the '�' with a simple 'e'?
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.
ohh yes. We should encode all files with plain ascii and not with UTF8. There are some compiler were we get problems with UTF8:-(
bbf0b35
to
3daac37
Compare
@@ -108,7 +108,7 @@ namespace alpaka | |||
auto constexpr reader( | |||
float, | |||
flag<N>, | |||
std::size_t R = reader(std::size_t{0u}, flag<N-1u>{})) | |||
std::size_t R = reader(std::size_t(0), flag<N-1u>())) |
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.
What is the advantage of using paranthesis versus the brackets?
There is a semantic difference. Your version is a cast while my version fails compilation if the value is not exactly representable by the given type. However, in this case there is no difference for the flag constructor.
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.
I think I changed it because it not compile with {}
but I will check it again.
3daac37
to
4d5dda4
Compare
- add id call to function `allocVar` and `allocArr` - `UniqueId.hpp` - use `#if" instead of `#ifdef` to check the compiler - use signed value for array declaration - enable declaration of `flag<>` and `adl_flag<>()`
4d5dda4
to
ebdc922
Compare
I changed
|
fix uid generation and usage
Add unit tests for template argument deduction in kernels
allocVar
andallocArr
UniqueId.hpp
#if" instead of
#ifdef` to check the compiler