The steps for installing Shark

系统 1398 0

What is Shark?

SHARK is a fast, modular, feature-rich open-source C++ machine learning library

website:http://image.diku.dk/shark/sphinx_pages/build/html/index.html

Because of Installing Shark depending on Boost and CMake

Install steps for Shark:
1. install the dependency software
sudo apt-get install cmake cmake-curses-gui libatlas-base-dev libboost-all-dev

2. download the Shark SRC
svn co https://svn.code.sf.net/p/shark-project/code/trunk/Shark

3. enter the Shark directory
cd Shark

4. cmake the src
cmake -DOPT_ENABLE_ATLAS=ON -DOPT_ENABLE_OPENMP=ON

If you have a custom/manual Boost installation, please identify your boost include and library directories and use instead:

ccmake -DBoost_NO_SYSTEM_PATHS=TRUE -DBOOST_INCLUDEDIR=/path/to/boost/include/ -DBOOST_LIBRARYDIR=/path/to/boost/lib/ <SHARK_SRC_DIR>

5.compiling the src
make

6. verify the installation finished.
make test(ctest)

If all the tests Passed, It will print the following Log:

         Start   1: BLAS_Iterators
  1/166 Test   #1: BLAS_Iterators ...............................   Passed    0.06 sec
        Start   2: BLAS_Vector_Assign
  2/166 Test   #2: BLAS_Vector_Assign ...........................   Passed    0.06 sec
        Start   3: BLAS_Matrix_Assign
  3/166 Test   #3: BLAS_Matrix_Assign ...........................   Passed    0.04 sec
        Start   4: BLAS_Compressed_Vector
  4/166 Test   #4: BLAS_Compressed_Vector .......................   Passed    0.03 sec
        Start   5: BLAS_Compressed_Matrix
  5/166 Test   #5: BLAS_Compressed_Matrix .......................   Passed    0.24 sec
        Start   6: BLAS_Vector_Proxy
  6/166 Test   #6: BLAS_Vector_Proxy ............................   Passed    0.07 sec
        Start   7: BLAS_Matrix_Proxy
  7/166 Test   #7: BLAS_Matrix_Proxy ............................   Passed    0.05 sec
        Start   8: BLAS_Vector_Expression
  8/166 Test   #8: BLAS_Vector_Expression .......................   Passed    0.28 sec
        Start   9: BLAS_Axpy_Prod
  9/166 Test   #9: BLAS_Axpy_Prod ...............................   Passed    0.54 sec
        Start  10: BLAS_Triangular_Prod
 10/166 Test  #10: BLAS_Triangular_Prod .........................   Passed    0.06 sec
......

        Start 164: RBM_PCDTraining
164/166 Test #164: RBM_PCDTraining ..............................   Passed    1.30 sec
        Start 165: RBM_ContrastiveDivergenceTraining
165/166 Test #165: RBM_ContrastiveDivergenceTraining ............   Passed    4.20 sec
        Start 166: RBM_ExactGradientTraining
166/166 Test #166: RBM_ExactGradientTraining ....................   Passed    1.53 sec

100% tests passed, 0 tests failed out of 166

Total Test time (real) = 546.67 sec

 

The steps for installing Shark


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论