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

sync #15

Merged
merged 56 commits into from
Jan 30, 2023
Merged

sync #15

merged 56 commits into from
Jan 30, 2023

Conversation

galeselee
Copy link
Owner

Issue: #

Brief Summary

lin-hitonami and others added 30 commits January 17, 2023 09:27
The name tutorial is a bit misleading as it's not a tutorial on Taichi
but on taichi in C++ apps. Also, we need to use the older name to make
our doc deployment bot happy.
This removes the size limit on circles. This works in a similar manner
as the particle rendering size limits.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

### Brief Summary

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #5819

### Brief Summary
1. Removed redundant interface `fill_with_scalar()`
2. Refactored `cast()` into internal interface `_instantiate()`
3. MatrixType/VectorType will only return `ti.Matrix` in python_scope,
while `Expr(TensorType)` in taichi_scope

After this PR, both MatrixType and VectorType should have single public
interface `__call__()`
The terminal will report an error when users run the command `ti
gallery` but close the window without choosing any example. This PR
fixes this problem.
…that do not support sparse (#7191)

Issue: fixes #7190

### Brief Summary
Issue: taichi-dev/taichi-aot-demo#110

### Brief Summary

Co-authored-by: PENGUINLIONG <admin@penguinliong.moe>
Issue: fixes #7193

### Brief Summary
Issue: #

### Brief Summary
…lement (#7178)

Issue: #

### Brief Summary

Co-authored-by: Yi Xu <xy_xuyi@foxmail.com>
Issue: #2590

### Brief Summary

The `dynamic_index` switch of `ti.init()` should be removed according to
the [deprecation
notice](https://github.com/taichi-dev/taichi/releases/tag/v1.4.0).
Issue: #

### Brief Summary
The `Program::jit_evaluator_id` is not used.
…aarch64 mac (#7201)

Issue: #

### Brief Summary
We sometimes hit `Assertion failed: (isInt<33>(Addend) && "Invalid page
reloc value."), function encodeAddend, file RuntimeDyldMachOAArch64.h,
line 210.` on m1 ci job and this PR tries to fix it.
Example failed ci jobs:
https://github.com/taichi-dev/taichi/actions/runs/3936953922
Issue: #6221 

### Brief Summary

`kernel4` in `test_offline_cache.py` triggers a weird LLVM internal
error on metal backend for macos12+. After moving metal runtime to
gfxruntime by @PENGUINLIONG and #7201, this is now the only blocker for
us to run full CI on macos ventura. As discussed with @PENGUINLIONG and
@feisuzhu offline, let's disable this test to unblock CI and add it back
once the issue is fixed.
Issue: #

### Brief Summary

Implemented texture and memory interop for OpenGL.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

### Brief Summary

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…#7199)

Issue: #7002 
Removed multi-thread version `Program::this_thread_config()` (see
#7159 (comment))

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

### Brief Summary
Issue: #

### Brief Summary
Netlify preview is broken so let's hack it around. Thanks @rexwangcc !

https://app.netlify.com/sites/docsite-preview/deploys/63c93618c40b59051b8f6043

Co-authored-by: Chengchen(Rex) Wang <14366016+rexwangcc@users.noreply.github.com>
Issue: #7002 

### Brief Summary
Removed dependencies on `Program::this_thread_config()` in
`lang::Function` compilation (AST->IR part)
* Push off the compilation of `lang::Function`: Introduce the
`irpass::compile_called_function(IRNode *root, const CompileConfig
&config)`, which compiles the AST/IR of `Function`s called in `root` to
the final IR.
This PR replaces the `SwizzleGenerator.generate()` with a simpler
function to generate all swizzling patterns.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
### Brief Summary

Changed the wide line rendering feature from rendering line primitives
to expanded quads. Added a "prepare" pass in GGUI to run the compute
shaders that expands & prepares the data.

Screenshot from macOS:

![image](https://user-images.githubusercontent.com/11663476/213070106-35f1d560-7a81-4760-af71-411b529c275a.png)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: fixes #7172 

### Brief Summary
Ideally we should reconstruct the dtype to the Tensortype from
taichi_core instead of python ones but that can be a separate PR.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

### Brief Summary
Update code according to the upcoming article

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #6434

### Brief Summary
1. put amdgpu-related bitcode files in external/amdgpu_libdevice(thus
taichi just need libamdhip64.so)
2. link amdgpu-related bc files and taichi-module together(Precisely,
clone bc files into taichi-module)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
strongoier and others added 26 commits January 20, 2023 15:12
Issue: #3982

### Brief Summary

`BitExtractStmt` is no longer required after the removal of the SNode
padding behavior.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

### Brief Summary

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Related: #7218

Without this GGUI will mess with the OpenGL backend because both tries
to initialize & destroy GLFW.

There is an issue tho with dependency. Which target should
`rhi/window_system` belong to? Maybe we need a device API target that
collects all the specific backends and generate a static lib with all
backends and optional dependencies like GLFW? (Anyways, that will be a
TODO for another PR)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Part of #7218

Related (ndarray meta-programming): #7231
I would certainly like to share this code between the field vesion and
NDArray version

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…7227)

### Brief Summary

This is a follow-up PR of #7104 to fully remove legacy code for the
SNode padding behavior. Note that the experimental code of struct for on
bitmasked SNode for SPIR-V is removed here because it assumes the
existence of the padding behavior.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This PR fixes typos and broken links in the `design/llvm` article.

---------

Co-authored-by: Olinaaaloompa <106292061+Olinaaaloompa@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Olinaaaloompa <106292061+Olinaaaloompa@users.noreply.github.com>
Why this PR:

Currently, when users allocate dynamic SNodes of dimension >= 2**31, the
error message is not easy to understand:
```
   self.ptr.dynamic(axis[0], dimension, chunk_size, get_traceback()))
TypeError: dynamic(): incompatible function arguments. The following argument types are supported:
    1. (self: taichi._lib.core.taichi_python.SNode, arg0: taichi._lib.core.taichi_python.Axis, arg1: int, arg2: int, arg3: str) -> taichi._lib.core.taichi_python.SNode
```

This PR makes the error clear.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #

Contains:
- [x] #7230
- [x] #7232
- [x] #7233
- [x] #7234
Merge those before this PR (to reduce the size of the change set)

### Brief Summary

Nuking all interops, in order to reduce code complexity of GGUI &
provide path ways to other rendering frontends (e.g. metal)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: #7246

### Brief Summary

---------

Co-authored-by: Ailing  <ailzhang@users.noreply.github.com>
Issue: #

### Brief Summary

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
)

Issue: #7002,
#7159 (comment)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…rt2) (#7253)

Issue: #7002

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@galeselee galeselee merged commit d9e15a6 into galeselee:amdgpu_temp Jan 30, 2023
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.