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

[Lang] Change the type error to a real exception #2

Closed
wants to merge 144 commits into from

Conversation

frostming
Copy link
Owner

Related issue = taichi-dev#3422

Hanke98 and others added 30 commits October 18, 2021 03:41
…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]>
* [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]>
* [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()
* Add non-root user and conda environment

* Add the base image for 18.04

* Fix some setups in the script
BillXu2000 and others added 26 commits November 6, 2021 08:43
…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]>
* 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
…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
* wip

* wip

* wip

* wip

* change truth name

* fix path

* ad images to MANIFEST and return folder to expected

* fix gitignore
@frostming frostming closed this Nov 10, 2021
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
frostming pushed a commit that referenced this pull request May 18, 2022
…dev#4926)

* [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

* [build] Warning Suppression PR #4: Fixed Mac-specific warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.