Giter Site home page Giter Site logo

Comments (6)

tqchen avatar tqchen commented on May 20, 2024

You want to add MKL to the include path. Find the path to the MKL library header file and add it by something like -I/path-to-mkl-header

You may also want to add the MKL lib file to -L and LD_LIBRARY_PATH

from cxxnet.

tohnperfect avatar tohnperfect commented on May 20, 2024

Sorry I know the path but I don't get where exactly should I put the path in (somewhere in the makefile?).
Could you please give me more detail? I am very new to Linux.

from cxxnet.

hrishikeshvganu avatar hrishikeshvganu commented on May 20, 2024

Look at the LDFLAGS portion below ( snippet from sample Makefile). Here -L/opt/OpenBLAS/lib/ indicates to include /opt/OpenBLAS/lib/ which is where my blas library files are

ifeq ($(blas),1)
 LDFLAGS= -L/opt/OpenBLAS/lib/ -L/opt/nvidia/cuda/lib64  -lm -lcudart -lcublas -lcurand -lz `pkg-config --libs opencv` -lopenblas
 CFLAGS+= -DMSHADOW_USE_MKL=0 -DMSHADOW_USE_CBLAS=1
 LDLIBS=/opt/OpenBLAS/lib/
else
 LDFLAGS= -lm -lcudart -lcublas -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread -liomp5 -lpthread -lcurand -lz `pkg-config --libs opencv`
endif
```shell

from cxxnet.

ziyuang avatar ziyuang commented on May 20, 2024

Add source /opt/intel/bin/compilervars.sh to your .bashrc will solve most MKL path issues.

from cxxnet.

tohnperfect avatar tohnperfect commented on May 20, 2024

Thanks @hrishikeshvganu and @ziyuang but I still cannot solve the problem.

from cxxnet.

ziyuang avatar ziyuang commented on May 20, 2024

The extra line in my .zshrc is source /opt/intel/bin/compilervars.sh intel64, and

$ cat /etc/ld.so.conf.d/intel.conf
/opt/intel/composer_xe_2015.1.133/compiler/lib/intel64
/opt/intel/composer_xe_2015.1.133/mpirt/lib/intel64
/opt/intel/composer_xe_2015.1.133/ipp/../compiler/lib/intel64
/opt/intel/composer_xe_2015.1.133/ipp/lib/intel64
/opt/intel/composer_xe_2015.1.133/compiler/lib/intel64
/opt/intel/composer_xe_2015.1.133/mkl/lib/intel64
/opt/intel/composer_xe_2015.1.133/tbb/lib/intel64/gcc4.4

from cxxnet.

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.