Unable to Run Parallel Taichi Simulations Using concurrent.futures
#8530
Labels
question
Question on using Taichi
concurrent.futures
#8530
Hi Taichi team,
I am trying to run parallel simulations using the
concurrent.futures
library. However, I am encountering an issue related to pickling Taichi objects. Below is a minimal example that reproduces the error.Directory Structure
File Contents
__init__py
# This file is empty
taichi_class.py
taichi_main.py
Logs
When I run
taichi_main.py
, I get the following logs/errors:Environment
Issue and Question
It seems like I can't pickle a Taichi instance. Is there a way to execute separate taichi simulations in parallel? I want to generate many samples of the simulation under slightly different initial conditions. I wasn't able to find anything in the past issues or docs.
Any help or guidance would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: