Coder Social home page Coder Social logo

Comments (3)

emmenlau avatar emmenlau commented on September 18, 2024

I have managed to change the makefile so that it will find TBB from my oneAPI installation. However this does not lead to a successful build, due to problems with linking TBB. It seems that oneDAL tries to link the static TBB when building a oneDAL DLL:

link  -nologo -map -dll  -DYNAMICBASE -NXCOMPAT tmp_build_files/work/threading_dynamic/threading_tbb.obj tmp_build_files/work/threading_dynamic/service_thread_pinner_tbb.obj __deps/mklfpk/win/lib/intel64/daal_mkl_thread.lib __deps/mklfpk/win/lib/intel64/daal_vmlipp_core.lib tmp_build_files/work/threading_dynamic/dll_tbb.res -DEF:tmp_build_files/work/threading_dynamic/onedal_thread.1_link.def -LIBPATH:tmp_build_files/release/tbb/latest/lib/intel64/vc_mt tbb12.lib tbbmalloc.lib msvcrt.lib msvcprt.lib /nodefaultlib:libucrt.lib ucrt.lib -IMPLIB:tmp_build_files/work/daal/lib/onedal_thread.1_dll.lib -out:tmp_build_files/work/daal/lib/onedal_thread.1.dll && printf '\n%s\n' 'tmp_build_files/work/daal/lib/onedal_thread.1.dll.mkdeps += makefile dev/make/cmplr.vc.mk dev/make/cmplr.dpcpp.mk dev/make/common.mk dev/make/deps.mk makefile.ver' '$(tmp_build_files/work/daal/lib/onedal_thread.1.dll.mkdeps):' 'tmp_build_files/work/daal/lib/onedal_thread.1.dll: $(tmp_build_files/work/daal/lib/onedal_thread.1.dll.mkdeps)' 'tmp_build_files/work/daal/lib/onedal_thread.1.dll.trigger = md5:4c98782cfeb420f7c7955ed2578fafe8' >> tmp_build_files/work/daal/lib/onedal_thread.1.dll.d.tmp && mv -f tmp_build_files/work/daal/lib/onedal_thread.1.dll.d.tmp tmp_build_files/work/daal/lib/onedal_thread.1.dll.d ;
cp -fp tmp_build_files/work/daal/lib/onedal_sequential.1.dll tmp_build_files/release/daal/latest/redist/intel64/onedal_sequential.1.dll
   Creating library tmp_build_files/work/daal/lib/onedal_thread.1_dll.lib and object tmp_build_files/work/daal/lib/onedal_thread.1_dll.exp
daal_mkl_thread.lib(dgeqrf_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(dgetrf_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(dorgqr_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(dormqr_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(dormrq_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(dpotrf_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
daal_mkl_thread.lib(sgeqrf_tbb_avx2.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in threading_tbb.obj
[...]

from onedal.

emmenlau avatar emmenlau commented on September 18, 2024

Anyone?

from onedal.

napetrov avatar napetrov commented on September 18, 2024

In general there are no plans to support build against MKL at the moment. In theory this would be possible - our fpk lib is subset of mkl functions with added prefix, so having some tool that would extract required functions and adding prefix would create similar fpk lib. Although there is also non mkl functions in fpk lib

from onedal.

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.