You are not logged in.

#1 2019-12-03 22:38:47

avisek
Member
Registered: 2014-11-01
Posts: 6

Location of OpenBLAS include and lib

Currently I am trying to install caffe. The Makefile requires specifying the following for OpenBLAS -

BLAS_INCLUDE := 

BLAS_LIB :=

But I havent been able to locate the directory where OpenBLAS is installed. Running locate openblas gives me:

locate openblas

/usr/include/openblas_config.h
/usr/lib/libopenblas.so
/usr/lib/libopenblas.so.3
/usr/lib/libopenblas_haswellp-r0.3.6.so
/usr/lib/cmake/openblas
/usr/lib/cmake/openblas/OpenBLASConfig.cmake
/usr/lib/cmake/openblas/OpenBLASConfigVersion.cmake
/usr/lib/pkgconfig/openblas.pc
/usr/share/licenses/openblas-lapack
/usr/share/licenses/openblas-lapack/LICENSE

I am not sure which directories to provide in the Makefile.

Last edited by avisek (2019-12-04 07:39:12)

Offline

#2 2019-12-03 22:53:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,223

Re: Location of OpenBLAS include and lib

And you are not using https://aur.archlinux.org/packages/caffe why exactly? In any case, read the Makefile.config of that AUR package.

Also FWIW you did (literally) locate the necessary directories, now you just have to apply that logically.

Last edited by V1del (2019-12-03 22:59:52)

Offline

#3 2019-12-03 23:03:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,345
Website

Re: Location of OpenBLAS include and lib

`man pkgconf`


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2019-12-03 23:09:01

avisek
Member
Registered: 2014-11-01
Posts: 6

Re: Location of OpenBLAS include and lib

I'm trying to build from source because if I try to install it from the AUR, it stops with an error -

yay -S caffe

:: There are 13 providers available for caffe:
:: Repository AUR
    1) caffe 2) caffe-cmake-git 3) caffe-cuda 4) caffe-cuda-git 5) caffe-dr-git 6) caffe-git 7) caffe-mnc-dr-git 8) caffe-opencl-git 9) caffe-ssd 10) caffe-ssd-cpu 11) trinnity-caffe-cuda-git 12) trinnity-caffe-cudnn-git 13) trinnity-caffe-git

Enter a number (default=1):
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1]  caffe-1.0-16

:: Downloaded PKGBUILD (1/1): caffe
  1 caffe                                    (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [Ii]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
:: Parsing SRCINFO (1/1): caffe
==> Making package: caffe 1.0-16 (Tue 03 Dec 2019 11:28:01 PM EST)
==> Retrieving sources...
  -> Downloading caffe-1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   115    0   115    0     0    239      0 --:--:-- --:--:-- --:--:--   239
100 8311k    0 8311k    0     0   900k      0 --:--:--  0:00:09 --:--:-- 1464k
  -> Found Makefile.config
  -> Found caffe-1.0-opencv4-fix.patch
==> Validating source files with sha256sums...
    caffe-1.0.tar.gz ... Passed
    Makefile.config ... Passed
    caffe-1.0-opencv4-fix.patch ... Passed
==> Making package: caffe 1.0-16 (Tue 03 Dec 2019 11:28:11 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found caffe-1.0.tar.gz
  -> Found Makefile.config
  -> Found caffe-1.0-opencv4-fix.patch
==> Validating source files with sha256sums...
    caffe-1.0.tar.gz ... Passed
    Makefile.config ... Passed
    caffe-1.0-opencv4-fix.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting caffe-1.0.tar.gz with bsdtar
==> Starting prepare()...
patching file Makefile
Hunk #1 succeeded at 194 (offset -6 lines).
Hunk #2 succeeded at 427 (offset -10 lines).
patching file Makefile.config.example
Hunk #1 succeeded at 17 (offset -2 lines).
patching file src/caffe/layers/window_data_layer.cpp
patching file src/caffe/test/test_io.cpp
patching file src/caffe/util/io.cpp
==> Sources are ready.
==> Making package: caffe 1.0-16 (Tue 03 Dec 2019 11:28:13 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
make: Entering directory '/home/user1/.cache/yay/caffe/src/caffe-1.0'
PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/internal_thread.cpp
CXX src/caffe/parallel.cpp
CXX src/caffe/net.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/common.cpp
CXX src/caffe/layers/sigmoid_layer.cpp
CXX src/caffe/layers/silence_layer.cpp
CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
CXX src/caffe/layers/scale_layer.cpp
CXX src/caffe/layers/image_data_layer.cpp
CXX src/caffe/layers/dummy_data_layer.cpp
CXX src/caffe/layers/cudnn_lrn_layer.cpp
CXX src/caffe/layers/pooling_layer.cpp
CXX src/caffe/layers/deconv_layer.cpp
CXX src/caffe/layers/im2col_layer.cpp
CXX src/caffe/layers/flatten_layer.cpp
CXX src/caffe/layers/split_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/eltwise_layer.cpp
CXX src/caffe/layers/batch_norm_layer.cpp
CXX src/caffe/layers/cudnn_lcn_layer.cpp
CXX src/caffe/layers/exp_layer.cpp
CXX src/caffe/layers/bnll_layer.cpp
CXX src/caffe/layers/cudnn_tanh_layer.cpp
CXX src/caffe/layers/crop_layer.cpp
CXX src/caffe/layers/bias_layer.cpp
CXX src/caffe/layers/parameter_layer.cpp
CXX src/caffe/layers/argmax_layer.cpp
CXX src/caffe/layers/lstm_layer.cpp
CXX src/caffe/layers/concat_layer.cpp
CXX src/caffe/layers/hdf5_data_layer.cpp
CXX src/caffe/layers/base_conv_layer.cpp
CXX src/caffe/layers/reshape_layer.cpp
CXX src/caffe/layers/spp_layer.cpp
CXX src/caffe/layers/cudnn_pooling_layer.cpp
CXX src/caffe/layers/softmax_loss_layer.cpp
CXX src/caffe/layers/conv_layer.cpp
CXX src/caffe/layers/cudnn_conv_layer.cpp
CXX src/caffe/layers/power_layer.cpp
CXX src/caffe/layers/lstm_unit_layer.cpp
CXX src/caffe/layers/data_layer.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/relu_layer.cpp
CXX src/caffe/layers/prelu_layer.cpp
CXX src/caffe/layers/embed_layer.cpp
CXX src/caffe/layers/tile_layer.cpp
CXX src/caffe/layers/base_data_layer.cpp
CXX src/caffe/layers/mvn_layer.cpp
CXX src/caffe/layers/cudnn_relu_layer.cpp
CXX src/caffe/layers/contrastive_loss_layer.cpp
CXX src/caffe/layers/rnn_layer.cpp
CXX src/caffe/layers/cudnn_softmax_layer.cpp
CXX src/caffe/layers/slice_layer.cpp
CXX src/caffe/layers/inner_product_layer.cpp
CXX src/caffe/layers/input_layer.cpp
CXX src/caffe/layers/memory_data_layer.cpp
CXX src/caffe/layers/reduction_layer.cpp
CXX src/caffe/layers/softmax_layer.cpp
CXX src/caffe/layers/hinge_loss_layer.cpp
CXX src/caffe/layers/log_layer.cpp
CXX src/caffe/layers/lrn_layer.cpp
CXX src/caffe/layers/tanh_layer.cpp
CXX src/caffe/layers/dropout_layer.cpp
CXX src/caffe/layers/elu_layer.cpp
CXX src/caffe/layers/batch_reindex_layer.cpp
CXX src/caffe/layers/recurrent_layer.cpp
CXX src/caffe/layers/loss_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
CXX src/caffe/layers/neuron_layer.cpp
CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp
CXX src/caffe/layers/filter_layer.cpp
CXX src/caffe/layers/cudnn_sigmoid_layer.cpp
CXX src/caffe/layers/window_data_layer.cpp
CXX src/caffe/layers/infogain_loss_layer.cpp
CXX src/caffe/layers/euclidean_loss_layer.cpp
CXX src/caffe/solvers/adadelta_solver.cpp
CXX src/caffe/solvers/rmsprop_solver.cpp
CXX src/caffe/solvers/nesterov_solver.cpp
CXX src/caffe/solvers/adagrad_solver.cpp
CXX src/caffe/solvers/sgd_solver.cpp
CXX src/caffe/solvers/adam_solver.cpp
CXX src/caffe/solver.cpp
CXX src/caffe/util/db.cpp
CXX src/caffe/util/im2col.cpp
CXX src/caffe/util/signal_handler.cpp
CXX src/caffe/util/io.cpp
CXX src/caffe/util/blocking_queue.cpp
CXX src/caffe/util/math_functions.cpp
CXX src/caffe/util/benchmark.cpp
CXX src/caffe/util/upgrade_proto.cpp
CXX src/caffe/util/db_leveldb.cpp
CXX src/caffe/util/hdf5.cpp
CXX src/caffe/util/db_lmdb.cpp
CXX src/caffe/util/insert_splits.cpp
CXX src/caffe/util/cudnn.cpp
CXX src/caffe/blob.cpp
CXX src/caffe/layer.cpp
CXX src/caffe/layer_factory.cpp

In file included from /usr/include/boost/python/detail/prefix.hpp:13,
                 from /usr/include/boost/python/args.hpp:8,
                 from /usr/include/boost/python.hpp:11,
                 from src/caffe/layer_factory.cpp:4:
/usr/include/boost/python/detail/wrap_python.hpp:57:11: fatal error: pyconfig.h: No such file or directory
   57 | # include <pyconfig.h>
      |           ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:594: .build_release/src/caffe/layer_factory.o] Error 1
make: Leaving directory '/home/user1/.cache/yay/caffe/src/caffe-1.0'
==> ERROR: A failure occurred in build().
    Aborting...
Error making: caffe

Last edited by avisek (2019-12-04 07:40:25)

Offline

#5 2019-12-03 23:59:18

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: Location of OpenBLAS include and lib

Please edit your post and use [ code ] tags when posting output.

https://wiki.archlinux.org/index.php/Co … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Offline

#6 2019-12-04 00:03:01

loqs
Member
Registered: 2014-03-06
Posts: 18,393

Re: Location of OpenBLAS include and lib

What is the output of the following when run as the same user that executed yay:

python -c 'import sys; print("%s.%s" %sys.version_info[0:2])'

Offline

#7 2019-12-04 07:41:20

avisek
Member
Registered: 2014-11-01
Posts: 6

Re: Location of OpenBLAS include and lib

loqs wrote:

What is the output of the following when run as the same user that executed yay:

python -c 'import sys; print("%s.%s" %sys.version_info[0:2])'

I get python 3.7

$ python -c 'import sys; print("%s.%s" %sys.version_info[0:2])'
3.7

I think I should open a new thread with a title that refers to installing the AUR package.

Last edited by avisek (2019-12-04 09:18:24)

Offline

#8 2019-12-04 12:22:38

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,480

Re: Location of OpenBLAS include and lib

I get python 3.7

$ python -c 'import sys; print("%s.%s" %sys.version_info[0:2])'
3.7

I think I should open a new thread with a title that refers to installing the AUR package.

An uptodate archlinux system would show 3.8 there.

I can think of of several possibilities to get 3.7, neither of which has to do with the aur package caffe. :

- Your last pacman -Syu was before archlinux switched to python 3.8 . Upgrade first, then try again.
- you have multiple python installs
- You're using a derivative distro that hasn't switched to python 3.8 yet


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

Board footer

Powered by FluxBB