Skip to content

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

Description

@zchrissirhcz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions