secretsvorti.blogg.se

Caffe anaconda distribution
Caffe anaconda distribution








# $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include

caffe anaconda distribution

# PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ # Verify anaconda location, sometimes it's in root. # Anaconda Python distribution is quite popular. # /usr/lib/python2.7/dist-packages/numpy/core/include root/miniconda3/envs/p圓7/lib/python3.7/site-packages/numpy/core/include PYTHON_INCLUDE := /root/miniconda3/envs/p圓7/include/python3.7m \ # We need to be able to find Python.h and numpy/arrayobject.h. # NOTE: this is required only if you will compile the python interface. # MATLAB_DIR := /Applications/MATLAB_R2012b.app # MATLAB directory should contain the mex binary in /bin. # This is required only if you will compile the matlab interface. # BLAS_LIB := $(shell brew -prefix openblas)/lib # BLAS_INCLUDE := $(shell brew -prefix openblas)/include # Homebrew puts openblas in a directory that is not on the standard search path # Leave commented to accept the defaults for your choice of BLAS # Custom (MKL/ATLAS/OpenBLAS) include and lib directories. # For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.ĬUDA_ARCH := -gencode arch=compute_30,code=sm_30 \

caffe anaconda distribution

# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility. # CUDA architecture setting: going with all of them.

CAFFE ANACONDA DISTRIBUTION INSTALL

# "sudo apt-get install nvidia-cuda-toolkit" then use this instead: # On Ubuntu 14.04, if cuda tools are installed via # CUDA directory contains bin/ and lib/ directories that we need. the default for Linux is g++ and the default for OSX is clang++ # To customize your choice of compiler, uncomment and set the following. # possibility of simultaneous read and write # You should not set this flag if you will be reading LMDBs with any # uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary) # uncomment to disable IO dependencies and corresponding data layers # CPU-only switch (uncomment to build without GPU support). # cuDNN acceleration switch (uncomment to build with cuDNN).

caffe anaconda distribution

# Contributions simplifying and improving our build system are welcome! root/miniconda3/envs/p圓7/lib/python3.7/site-packages/numpy/core/include/numpy (p圓7) find /root/miniconda3/envs/p圓7/lib/ -name numpy

caffe anaconda distribution

查找numpy路径 find /root/miniconda3/envs/p圓7/lib/ -name numpy (p圓7) python -c "import distutils.sysconfig as sysconfig print(sysconfig.get_config_var('LIBDIR'))" root/miniconda3/envs/p圓7/include/python3.7m (p圓7) python -c "from distutils.sysconfig import get_python_inc print(get_python_inc())" Python -c "import distutils.sysconfig as sysconfig print(sysconfig.get_config_var('LIBDIR'))" 查找对应路径 python -c "from distutils.sysconfig import get_python_inc print(get_python_inc())" Git clone caffe仓库 git clone -b 1.0 -depth 1 įor req in $(cat python/requirements.txt) do pip install $req doneĬp nfig 添加nvidia-machine-learning软件源 curl -fsSL | apt-key add - & \Įcho "deb /" > /etc/apt//cuda.listĪpt install libnccl2=2.6.4-1+cuda10.0 libnccl-dev=2.6.4-1+cuda10.0Īpt-get install -y -no-install-recommends libboost-all-dev 安装依赖包 apt-get -y install libboost-dev libprotobuf-dev libgflags-dev libgoogle-glog-dev libhdf5-dev libopencv-dev protobuf-c-compiler protobuf-compiler libopenblas-dev libhdf5-dev libleveldb-dev liblmdb-dev libboost-system-dev libboost-filesystem-dev libsnappy-dev libboost-thread-dev libatlas-base-dev libboost-python-dev 修改conda源 bash /public/script/switch_conda_source.sh 安装curand apt install cuda-curand-dev-10-0








Caffe anaconda distribution