Loading PyTorch model using BinaryData

Thanks for trying out JUCE 6 and the new CMake support!

That sounds unusual, but it’s difficult to say where the issue may lie. Is there a particular line of output before the memory spike?

CMake binary data targets don’t have PIC enabled by default. If you know you’ll be using a particular binary data target in a plugin, add the following to your cmakelists after adding the binary data target:

set_target_properties(my_binary_data PROPERTIES # replace target name
    POSITION_INDEPENDENT_CODE TRUE)
3 Likes