Skip to content

PyTorch support cannot be built in Debug mode #116

Description

@roastduck

When building with both -DCMAKE_BUILD_TYPE=Debug and -DFT_WITH_PYTORCH=ON, it will result in an missing symbol:

ImportError: /home/rd/src/FreeTensor_experiments/FreeTensor/build/freetensor_ffi.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions