-
Notifications
You must be signed in to change notification settings - Fork 41
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
long long missing in adios_types.h #187
Comments
Ok, I think I understand what you did there.
(Same for unsigned and floating points.) |
Exactly. This approach, however, put the task on the user to make sure the
correct type is chosen. In adios 2.x, the C++ API lets the user to use the
C++ types.
…On Sat, Sep 8, 2018, 4:43 AM Axel Huebl ***@***.***> wrote:
Ok, I think I understand what you did there.
adios_short is actually a *platform independent* adios_int16_t,
adios_integer a *platform independent* adios_int32_t and adios_long a *platform
independent* adios_int64_t?
(Same for unsigned and floating points.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#187 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADGMLb0mkeaR4sGVJu6qQhLJEP8rkprJks5uY4MjgaJpZM4Wemi8>
.
|
@pnorbert alright, thanks! And you assume that a Byte is 8 Bit ( |
in adios 1.x, adios_byte simply means 8 bit. The user needs to make the
mapping between memory type to the adios type. You would need to store a 16
bit wide character string as a adios_short array manually.
…On Mon, Sep 10, 2018 at 11:57 AM Axel Huebl ***@***.***> wrote:
@pnorbert <https://github.com/pnorbert> alright, thanks! And you assume
that a Byte is 8 Bit (CHAR_BIT == 8), otherwise it's not portable? Just
checking the corner cases :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#187 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADGMLfVTPTmQhBxsh3IFmnZpttOfVk1Kks5uZovegaJpZM4Wemi8>
.
|
@pnorbert alright, thanks. Another question: what's the recommended type in adios 1 to represent C++ |
Well, just that, unsigned char.
…On Thu, Sep 13, 2018, 3:35 PM Axel Huebl ***@***.***> wrote:
@pnorbert <https://github.com/pnorbert> alright, thanks.
Another question: what's the recommended type in adios 1 to represent C++
bools? We are currently mapping them to unsigned chars, but allowing a
bool equivalent in meta data would be great to differentiate properly in
reads.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#187 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADGMLcbXZEXdY8srKmEQioCObPr6DyPdks5uarN8gaJpZM4Wemi8>
.
|
Although
long long
andunsigned long long
are basic/fundamental C (& C++) types, there are only:in adios_types.h
Can you add support for
adios_long_long
andadios_unsigned_long_long
?Also, the
(size)
comment in those lines is platform specific. E.g. ADIOS1 works well on OSX, wherelong
is the same size as anint
. You will needadios_long_long
to describe an 8-byteint
there.cc @pnorbert
The text was updated successfully, but these errors were encountered: