forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Lang] Change the type error to a real exception #2
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dev#3215) * a quick solve * fix mass spring * remove sys * add todo and issue * fix typo
* [doc] Remove libtinfo5 * Update docs/lang/articles/contribution/dev_install.md
* [vulkan] Trying to fix external memory allocation * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
* refactor: optimize Expression::serialize * use ostream
* Add a torch disable switch * Add class for NDArray * Add pybind interface * Pass the arguments for non-ndarray * Add options to bypass torch * Auto Format * Auto Format * Use updated function * Update taichi/program/ndarray.cpp Co-authored-by: Ye Kuang <[email protected]> * Update taichi/program/compile_config.cpp Co-authored-by: Ye Kuang <[email protected]> * Update taichi/program/ndarray.h Co-authored-by: Ye Kuang <[email protected]> * Update taichi/program/ndarray.h Co-authored-by: Ye Kuang <[email protected]> * Implement from/to numpy * Fix error * Auto Format * Bypass pylint * Auto Format * Update python/taichi/lang/_ndarray.py Co-authored-by: Yi Xu <[email protected]> * Consider case with torch tensor * Auto Format * Remove host specific getset item * Fix * Auto Format * Add tests for ndarray memory * Add a 1d test * Skip torch-only tests * Auto Format * Use no import ti * Auto Format * Add support for MatrixNdarray and VectorNdarray * Auto Format * Update python/taichi/lang/_ndarray.py Co-authored-by: Yi Xu <[email protected]> * Update taichi/system/ndarray_buffer_manager.h Co-authored-by: Yi Xu <[email protected]> * Remove ndarray buffer manager * Auto Format * Make two getter/setter impls * Merge torch and non-torch tests * Auto Format * Fix logic * Remove unused var * Auto Format * Remove redundant var Co-authored-by: Taichi Gardener <[email protected]> Co-authored-by: Ye Kuang <[email protected]> Co-authored-by: Yi Xu <[email protected]>
* lmao * max
* [opengl] Decouple AOT builder from the runtime * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
* wip, memcpy_internal not working somehow * enable ggui iff enable vk * fix rebase * working * resolve some nits * get device from embedded_device_ * include glfw * fix cmake * remove excess includes * guard glfw * rename dummy window * reset examples
…ichi-dev#3225) * Cleanup core.py to be more tidy * Put an empty __init__.py under lib * catch more exceptions * Separate the code in two lines
* [doc] Add doc string for _logging.py. * [doc] Add doc string's examples. * [doc] Use "pre-set" instead of "default". * [doc] Format.
…ev#3180) * [Lang] Add a new transformation pass to rename module alias * [Lang] Fix format
…struct fors (taichi-dev#3218) * Remove disable_local_tensor when building struct for loop indices * Fix type assertion error in offsets * Clean comments * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
`ti test -vr2 -a vulkan` fails with `TypeError: 'NoneType' object is not callable` and this PR fixes it.
* [skip ci] Add a formal security disclosure section. * [skip ci] Update links to docs and zh-Hans docs, also fix other broken links. * [skip ci] Not sure what to do with the hub link, hide for now. * [skip ci] Use formal words. * [skip ci] Also update the PR template. * Loosen the gitignore restrictions for docs folder. * Add back the missing metadata and image for docs. Fixing taichi-dev/docs.taichi.graphics#71. * Remove references to API docs. * This is dumb.. * Remove outdated badges and add a postsubmit check badge. * Remove useless yarn lockfile.
* mac ggui * Update examples/ggui_examples/mpm3d_ggui.py Co-authored-by: Ye Kuang <[email protected]> Co-authored-by: Ye Kuang <[email protected]>
* Add alias analysis for PtrOffsetStmt * Enable store-to-load forwarding of local tensors * Fix live variable analysis with local tensors * Fix: TensorType alloca is not a store * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
…upported in Python 3.6 (taichi-dev#3246)
* [Bug] fix IndentationError when using tab indents * trigger CI * use textwrap.dedent() to format source code * replace all _remove_indent() with textwrap.dedent() and remove _remove_indent()
* u8 * remove legacy comments
* Add non-root user and conda environment * Add the base image for 18.04 * Fix some setups in the script
…chi-dev#3282) * fix continue in struct for and add a test * Auto Format * specify changes only for llvm backend * Auto Format * remove as_return in statements * Auto Format * Update taichi/backends/vulkan/codegen_vulkan.cpp Co-authored-by: Ye Kuang <[email protected]> * Update taichi/backends/metal/codegen_metal.cpp Co-authored-by: Ye Kuang <[email protected]> * Update taichi/codegen/codegen_llvm.cpp Co-authored-by: Ye Kuang <[email protected]> * Update codegen_metal.cpp * Update codegen_vulkan.cpp * Update codegen_llvm.cpp Co-authored-by: Taichi Gardener <[email protected]> Co-authored-by: Chang Yu <[email protected]> Co-authored-by: Ye Kuang <[email protected]>
* [LLVM] Fix logging formats * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
…#3388) Resubmission of taichi-dev#3384 to master branch.
* Update scalar.h Find the largest potence faster. * Update scalar.h * Update scalar.h Fixed a bug * Update scalar.h Manually edited formatting errors. * Update scalar.h retry workflow * Create scalar.h retry workflow
…aichi-dev#3377) * Add type_check for GlobalPtr * Add type_check for TensorElementExpression * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
* [Refactor] Use wrapped create_call * Auto Format * fix * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
…#3403) * [CI] recheck the title format when user updates the title * fix presubmit error Co-authored-by: Ailing <[email protected]>
…dev#3353) * add static group for * format * add range for * fix import * add ndrange for * add grouped ndrange for * add grouped struct for * format * add break, continue and pass * format * add while * add test
* add build scripts for win * Don't create dir if exists * install wheel * activate venv for testing * fix the cmake args * Update release.yml to use the script * change the option name * update the option name as requested * change libsdir default to . * show the verbose output
…ev#3400) * add ListComp and DictComp * fix * add test
…darray (taichi-dev#3395) * Use preallocated memory from runtime * Auto Format * Add cuda guard * Unify the memory runtime function * Auto Format * Add a helper for cpu and cuda mem alloc * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
* [Refactor] Simplify runtime function definition * Auto Format Co-authored-by: Taichi Gardener <[email protected]>
* [ci] Fix aws machine not removing container * add presubmit
* fix macos lines * fix
* wip * wip * wip * wip * change truth name * fix path * ad images to MANIFEST and return folder to expected * fix gitignore
frostming
pushed a commit
that referenced
this pull request
May 18, 2022
frostming
pushed a commit
that referenced
this pull request
May 18, 2022
…y headers (taichi-dev#4920) * [build] Warning Suppression PR #1: Turned on -Wno-ignored-attributes & Removed unused functions * [build] Warning Suppression PR #2: Eliminate warnings from third-party headers * Fixed an warning with enum comparison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue = taichi-dev#3422