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

Question: Use cmake to compile CLBAST on windows #2034

Closed
mikeyang01 opened this issue Jun 28, 2023 · 4 comments
Closed

Question: Use cmake to compile CLBAST on windows #2034

mikeyang01 opened this issue Jun 28, 2023 · 4 comments
Labels

Comments

@mikeyang01
Copy link
Contributor

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [-] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • [-] I carefully followed the README.md.
  • [-] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • [-] I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior

I want to use the AMD GPU using CLBLAST on windows
cmake CLBlast success

Current Behavior

The following command failed
cmake .. -DLLAMA_CLBLAST=ON -DCLBlast_dir=/some/path
cmake --build . --config Release

Please provide a detailed written description of what llama.cpp did, instead.

Environment and Context

  • Physical (or virtual) hardware you are using, e.g. for Linux:
    AMD Ryzen™ 7 7735HS

  • Operating System, e.g. for Linux:
    Window 11 Pro X64

  • SDK version, e.g. for Linux:
    cmake version 3.26.4

Failure Information (for bugs)

Cmake failed

Steps to Reproduce

Run
cmake --build . --config Release
result:
many errors, mainly is "fatal error LNK1169: one or more multiply defined symbols found "

Failure Logs

PS C:\Github\llama.cpp\build> cmake .. -DLLAMA_CLBLAST=ON -DCLBlast_dir=/some/path

-- Building for: Visual Studio 17 2022
-- The C compiler identification is MSVC 19.33.31631.0
-- The CXX compiler identification is MSVC 19.33.31631.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/HostX64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.41.0.windows.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- CLBlast found
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- x86 detected
-- Configuring done (4.8s)
-- Generating done (0.3s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CLBlast_dir

-- Build files have been written to: C:/Github/llama.cpp/build

PS C:\Github\llama.cpp\build> cmake --build . --config Release

MSBuild version 17.6.3+07e294721 for .NET Framework

  Checking Build System
  Generating build details from Git
  -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.41.0.windows.1")
  Building Custom Rule C:/Github/llama.cpp/CMakeLists.txt
  Building Custom Rule C:/Github/llama.cpp/CMakeLists.txt
  ggml.c
  k_quants.c
  Generating Code...
  ggml-opencl.cpp
  ggml.vcxproj -> C:\Github\llama.cpp\build\ggml.dir\Release\ggml.lib
  Building Custom Rule C:/Github/llama.cpp/CMakeLists.txt
  llama.cpp
  llama.vcxproj -> C:\Github\llama.cpp\build\Release\llama.lib
  Building Custom Rule C:/Github/llama.cpp/examples/CMakeLists.txt
  common.cpp
  common.vcxproj -> C:\Github\llama.cpp\build\examples\common.dir\Release\common.lib
  Building Custom Rule C:/Github/llama.cpp/examples/baby-llama/CMakeLists.txt
  baby-llama.cpp
clblast.lib(kernel_preprocessor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp
\build\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(clblast.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
clblast.lib(utilities.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(clblast_exceptions.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\
build\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(cache.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(database.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
clblast.lib(xswap.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xscal.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xcopy.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xaxpy.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xdot.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
clblast.lib(xdotu.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xdotc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xnrm2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xasum.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xamax.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemv.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgbmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhemv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhbmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhpmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xsymv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xsbmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xspmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xtrmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xtbmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xtpmv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xtrsv.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xger.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgeru.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xgerc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xher.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(xhpr.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(xher2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhpr2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xsyr.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(xspr.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(xsyr2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xspr2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemm.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xsymm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhemm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xsyrk.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xherk.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xsyr2k.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
clblast.lib(xher2k.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
clblast.lib(xtrmm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xtrsm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
clblast.lib(xhad.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(xomatcopy.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xim2col.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
clblast.lib(xcol2im.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
clblast.lib(xconvgemm.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build
\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xaxpybatched.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemmbatched.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemmstridedbatched.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp
\build\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xaxpy.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xdot.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemv.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemv_fast.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\ex
amples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemv_fast_rot.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\buil
d\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xger.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemm.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(xgemm_direct.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(xconvgemm.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build
\examples\baby-llama\baby-llama.vcxproj]
clblast.lib(copy.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
clblast.lib(pad.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples\
baby-llama\baby-llama.vcxproj]
clblast.lib(transpose.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
clblast.lib(padtranspose.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(invert.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
clblast.lib(gemm_routine.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(trsv_routine.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\
examples\baby-llama\baby-llama.vcxproj]
clblast.lib(common.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
clblast.lib(routine.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
clblast.lib(xinvert.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
clblast.lib(compile.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (??0?$basic_str
eambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ) already defined in clblast.lib(utilities.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$bas
ic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::snextc(void)" (?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA
HXZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: virtual __int64 __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::xsgetn(char *,__int64)" (?xsgetn@?$basic_streambuf@DU?$char
_traits@D@std@@@std@@MEAA_JPEAD_J@Z) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: virtual __int64 __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::xsputn(char const *,__int64)" (?xsputn@?$basic_streambuf@DU
?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$c
har_traits@D@std@@@std@@UEAA@XZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_istream<char,struct std::char_traits<char> >::~basic_istream<char,struct std::char_traits<char> >(void)" (??1?$basic_i
stream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: bool __cdecl std::basic_istream<char,struct std::char_traits<char> >::_Ipfx(bool)" (?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@
Z) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_iostream<char,struct std::char_traits<char> >::~basic_iostream<char,struct std::char_traits<char> >(void)" (??1?$basic
_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: void __cdecl std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ)
already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?f
lush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in clblast.lib(kernel_preprocessor.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2005: "void __cdecl std::_Facet_Register(class std::_Facet_base *)" (?_Facet_Register@std@@YAXPEAV_Facet_base@1@@Z) already defined in msvcprt.lib(locale0_implib
.obj) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ) already defi
ned in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(bool)" (?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z) already defined in msvcprt.lib(M
SVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z) already defi
ned in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z) already defined in msvcprt.li
b(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llam
a.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: static unsigned __int64 __cdecl std::codecvt<char,char,struct _Mbstatet>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?
_Getcat@?$codecvt@DDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll)
 [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@
IEAAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sbumpc(void)" (?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHX
Z) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ)
 already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(locale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z
) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(iosptrs.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(wlocale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(wlocale.obj) : error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\lla
ma.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(wlocale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll
) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(wlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP1
40.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(wlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MS
VCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\lla
ma.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll
) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@
@IEAAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP1
40.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MS
VCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sbumpc(void)" (?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAH
XZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ
) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlocale.obj) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@
Z) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xstol.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xstoul.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xstoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exampl
es\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xstoull.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlock.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\example
s\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xlock.obj) : error LNK2005: "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby
-llama\baby-llama.vcxproj]
libcpmt.lib(xlock.obj) : error LNK2005: "public: __cdecl std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QEAA@XZ) already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\bab
y-llama\baby-llama.vcxproj]
libcpmt.lib(xstrcoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xdateord.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xwctomb.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examp
les\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xwctomb.obj) : error LNK2005: _Getcvt already defined in msvcprt.lib(MSVCP140.dll) [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xwcscoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xwcsxfrm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xgetwctype.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\ex
amples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xtowlower.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xtowupper.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exa
mples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xstrxfrm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\exam
ples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(xmtx.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\build\examples
\baby-llama\baby-llama.vcxproj]
libcpmt.lib(StlCompareStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\b
uild\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(StlCompareStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\b
uild\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(StlLCMapStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\bui
ld\examples\baby-llama\baby-llama.vcxproj]
libcpmt.lib(StlLCMapStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in baby-llama.obj [C:\Github\llama.cpp\bui
ld\examples\baby-llama\baby-llama.vcxproj]
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
C:\Github\llama.cpp\build\bin\Release\baby-llama.exe : fatal error LNK1169: one or more multiply defined symbols found [C:\Github\llama.cpp\build\examples\baby-llama\baby-llama.vcxproj]
  Building Custom Rule C:/Github/llama.cpp/examples/benchmark/CMakeLists.txt
  benchmark-matmult.cpp
clblast.lib(kernel_preprocessor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in benchmark-matmult.obj [C:\Github\ll
ama.cpp\build\examples\benchmark\benchmark.vcxproj]
clblast.lib(clblast.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in benchmark-matmult.obj [C:\Github\llama.cpp\buil
d\examples\benchmark\benchmark.vcxproj]
clblast.lib(utilities.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in benchmark-matmult.obj [C:\Github\llama.cpp\bu
ild\examples\benchmark\benchmark.vcxproj]
@ghost
Copy link

ghost commented Jun 28, 2023

Hi,

This appears to be a pathing and installation error. I don't see that you've installed OpenCL SDK which is required to enable CLBlast.

If CLBlast is installed then ensure you change the path in your command. The post shows it's set with, "-DCLBlast_dir=/some/path". Some path needs to be renamed to the actual CLBlast directory on your machine.

  1. Ensure you've installed CLBlast, provide clinfo if you can.

  2. Change your command to the actual CLBlast directory on your computer.

@mikeyang01
Copy link
Contributor Author

Ensure you've installed CLBlast, provide clinfo if you can.
Change your command to the actual CLBlast directory on your computer.
Thanks for the reply, but the cmake command found the clbast already

-- Found Threads: TRUE
-- CLBlast found
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- x86 detected
-- Configuring done (4.8s)
-- Generating done (0.3s)

@jllllll
Copy link

jllllll commented Jul 13, 2023

I was able to resolve the mismatch errors by building CLBlast with -DBUILD_SHARED_LIBS=ON.

Copy link
Contributor

github-actions bot commented Apr 9, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants