Git Product home page Git Product logo

Comments (3)

TonyCongqianWang avatar TonyCongqianWang commented on June 8, 2024

After typing everything out I realized: multiple definitions, that might be because of the multiple simd libraries! And indeed when I remove:

find_library(SIMD_BASE_LIBRARY NAMES base)
find_library(AMXBF16_LIBRARY NAMES amxbf16)
find_library(AVX1_LIBRARY NAMES avx1)
find_library(AVX2_LIBRARY NAMES avx2)
find_library(AVX512BF16_LIBRARY NAMES avx512bf16)
find_library(AVX512BW_LIBRARY NAMES avx512bw)
find_library(AVX512VNNI_LIBRARY NAMES avx512vnni)
find_library(NEON_LIBRARY NAMES neon)
find_library(SSE41_LIBRARY NAMES sse41)
find_library(VMX_LIBRARY NAMES vmx)
find_library(VSX_LIBRARY NAMES vsx)

from my CMakeList the program is compiling and linking again! But now I am wondering, even when I just included the Base.lib, I couldn't link properly, how do I properly include those specialized libraries? Is that just not possible in a shared library on windows?

from simd.

ermig1979 avatar ermig1979 commented on June 8, 2024

Hi. When you want to use Simd.dll you have to link just it. Simd.dll links the rest libraries inside itself.
During static linking you have to link all libraries.

from simd.

TonyCongqianWang avatar TonyCongqianWang commented on June 8, 2024

Hello thank you so much for the quick reply! I do indeed want to link Simd statically to create my own library that exports functions dynamically. The static linking worked with and without the libraries but only when linking my library dynamically in a test program, I received the errors. Do you have any Idea what caused them? I use the newer version installed via vcpgk for x64-Windows

from simd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.