You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[E 01/03/25 21:50:46.652 27228] [lang_util.cpp:taichi::lang::runtime_lib_dir@43] If you are running the taichi_cpp_tests
please set $TI_LIB_DIR to $TAICHI_INSTALL_DIR/_lib/runtime. $TAICHI_INSTALL_DIR can be retrieved from taichi.path[0
] in python. You can also use this script to find out $TI_LIB_DIR:
python -c "import os; import taichi as ti; p = os.path.join(ti.path[0], '_lib', 'runtime'); print(p)"
[W 01/03/25 21:50:46.654 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (invalid state) [lang_util.cpp
:taichi::lang::runtime_lib_dir@43] If you are running the taichi_cpp_tests please set $TI_LIB_DIR to $TAICHI_INSTALL_DIR
/_lib/runtime. $TAICHI_INSTALL_DIR can be retrieved from taichi.path[0] in python. You can also use this script to f
ind out $TI_LIB_DIR:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
我尝试直接运行调用taichi的二进制文件,并获得mpm算法处理后的粒子坐标,来走我自己的渲染引擎,目前的问题是这样的:
#include
#include
#include
#include "glm/glm.hpp"
#include <taichi/cpp/taichi.hpp>
#include "framework/include/taichi/aot_demo/framework.hpp"
using namespace ti::aot_demo;
int main() {
static const uint32_t NPARTICLE = 8192 * 2;
static const uint32_t GRID_SIZE = 128;
#ifdef TI_AOT_DEMO_ANDROID_APP
std::vector<uint8_t> tcm;
F_->asset_mgr().load_file("E2_mpm88.tcm", tcm);
module_ = runtime_.create_aot_module(tcm);
#else
auto aot_file_path = "C:\Users\DrTang\Desktop\aot\mpm88_cuda";
module_ = runtime_.load_aot_module(aot_file_path);
#endif
}这是我的代码,下面是我遇到的报错
C:\Users\DrTang\Desktop\aot\cmake-build-debug\aot.exe
[E 01/03/25 21:50:46.652 27228] [lang_util.cpp:taichi::lang::runtime_lib_dir@43] If you are running the taichi_cpp_tests
please set $TI_LIB_DIR to $TAICHI_INSTALL_DIR/_lib/runtime. $TAICHI_INSTALL_DIR can be retrieved from taichi.path[0
] in python. You can also use this script to find out $TI_LIB_DIR:
python -c "import os; import taichi as ti; p = os.path.join(ti.path[0], '_lib', 'runtime'); print(p)"
[W 01/03/25 21:50:46.654 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (invalid state) [lang_util.cpp
:taichi::lang::runtime_lib_dir@43] If you are running the taichi_cpp_tests please set $TI_LIB_DIR to $TAICHI_INSTALL_DIR
/_lib/runtime. $TAICHI_INSTALL_DIR can be retrieved from taichi.path[0] in python. You can also use this script to f
ind out $TI_LIB_DIR:
python -c "import os; import taichi as ti; p = os.path.join(ti.path[0], '_lib', 'runtime'); print(p)"
[W 01/03/25 21:50:46.654 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.654 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) aot_module
[W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) aot_module
initialized!
Particle 0: ([W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.655 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.656 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.656 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.656 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.656 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
[W 01/03/25 21:50:46.656 27228] [taichi_core_impl.cpp:ti_set_last_error@233] C-API error: (argument null) runtime
进程已结束,退出代码为 -1073741819 (0xC0000005)
我已经设置了环境变量TI_LIB_DIR,我该如何解决
Beta Was this translation helpful? Give feedback.
All reactions