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

Apple M1: symbol not found in flat namespace during runtime #48

Open
zchrissirhcz opened this issue Oct 29, 2022 · 3 comments
Open

Apple M1: symbol not found in flat namespace during runtime #48

zchrissirhcz opened this issue Oct 29, 2022 · 3 comments

Comments

@zchrissirhcz
Copy link

Short description

Hi, maintainers, I build taichi and taichi-aot-demo on Apple M1 successfully, but when running the executables (e.g. E3_implicit_fem_headless) it failed, complaining symbol not found, which is related to CUDA.

Details

I build taichi(latest commit in 2022.10.28) with customized options, on Apple M1 (yes, clang11 installed and specified via CXX env var, the customized LLVM10 downloaded and setup):

TI_WITH_CUDA = OFF
TI_WITH_VULKAN = ON
TI_WITH_C_API = ON

And when running executable files in taichi-aot-demo:

cd /Users/zz/work/taichi-aot-demo/build/mac-arm64/headless
 ./E1_hello_world_headless
dyld[54902]: symbol not found in flat namespace (__ZN6taichi4lang4cuda10CudaDevice14get_alloc_infoENS0_16DeviceAllocationE)
c++filt __ZN6taichi4lang4cuda10CudaDevice14get_alloc_infoENS0_16DeviceAllocationE
taichi::lang::cuda::CudaDevice::get_alloc_info(taichi::lang::DeviceAllocation)
@zchrissirhcz
Copy link
Author

Since no nvidia gpu on Apple M1, I think no cuda related symbols should be requested.

@PENGUINLIONG
Copy link
Member

thanks for the report, will look into it

@bobcao3
Copy link
Collaborator

bobcao3 commented Oct 31, 2022

Seems like interops leaked through

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

3 participants