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

A lid-driven implementation in Taichi #14

Open
houkensjtu opened this issue Jun 9, 2023 · 0 comments
Open

A lid-driven implementation in Taichi #14

houkensjtu opened this issue Jun 9, 2023 · 0 comments

Comments

@houkensjtu
Copy link

Hi @Ceyron,

I watched your amazing video on Youtube and I wrote my own implementation in Taichi language : https://gist.github.com/houkensjtu/dc00a6b8ae3d819b9295d68c55df0a29

Most of the code structures resemble your Numpy version, but I had to declare more data containers (ti.field) in this implementation because managing memory dynamically on a GPU is rather difficult. (for that reason Taichi enforce you to allocate the fields beforehand)

The resulting script runs as well as your Numpy version and can have a pretty decent performance boost if you have a GPU.

Hope you will like it and give it a shot if you're interested (Taichi also has a autodiff system).

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

No branches or pull requests

1 participant