Skip to content
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 ti.u8 and ti.i16 support #505 #504

Closed
archibate opened this issue Feb 19, 2020 · 0 comments
Closed

Add ti.u8 and ti.i16 support #505 #504

archibate opened this issue Feb 19, 2020 · 0 comments
Labels
feature request Suggest an idea on this project

Comments

@archibate
Copy link
Collaborator

archibate commented Feb 19, 2020

Concisely describe the proposed feature
I would like to add more data types (eg. ti.u8, ti.i16) to the compiler so that audio and graphic users could be happy dealing with their raw data.

Describe the solution you'd like
u8 is already in taichi/tlang_util.h.
You may want to start from python/taichi/lang/util.py (?)

Additional comments
Just the basic supports, not need too much things like pow_i8.

@archibate archibate added the feature request Suggest an idea on this project label Feb 19, 2020
archibate added a commit to archibate/taichi that referenced this issue Feb 20, 2020
archibate added a commit to archibate/taichi that referenced this issue Feb 20, 2020
[skip ci] also add in Kernel::set_arg_*
archibate added a commit to archibate/taichi that referenced this issue Feb 20, 2020
also add in Kernel::set_arg_*

kernel args support-more-types; add test_types.py

add tensor to test_types.py
@archibate archibate changed the title Add ti.u8 and ti.i16 support Add ti.u8 and ti.i16 support (archibate) Feb 20, 2020
@archibate archibate changed the title Add ti.u8 and ti.i16 support (archibate) Add ti.u8 and ti.i16 support Feb 20, 2020
@archibate archibate changed the title Add ti.u8 and ti.i16 support Add ti.u8 and ti.i16 support #505 Feb 20, 2020
yuanming-hu pushed a commit to archibate/taichi that referenced this issue Feb 20, 2020
also add in Kernel::set_arg_*

kernel args support-more-types; add test_types.py

add tensor to test_types.py
yuanming-hu added a commit that referenced this issue Feb 24, 2020
* add more types: {u,i}{8,16,32,64} #504

also add in Kernel::set_arg_*

kernel args support-more-types; add test_types.py

add tensor to test_types.py

* add test_overflow to test_types.py

fix faults in test_overflow

* real/integer_types/type_ids

* updateded is_integral; added is_signed/is_unsigned

* Fixed SNode::write_int when using i64

* Fixed SNode::read_int when using u64: added SNode::read_uint

Co-authored-by: Yuanming Hu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project
Projects
None yet
Development

No branches or pull requests

1 participant