![]() LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include # Whatever else you find you need goes here. # Uncomment to support layers written in Python (will link against Python libs) # PYTHON_LIB += $(shell brew -prefix numpy)/lib # PYTHON_INCLUDE += $(dir $(shell python -c 'import re print(re._file_)'))/include # Homebrew installs numpy in a non standard path (keg only) # We need to be able to find libpythonX.X.so or. usr/lib/python3.5/dist-packages/numpy/core/include # PYTHON_INCLUDE := /usr/include/python3.5m \ # PYTHON_LIBRARIES := boost_python3 python3.6m # Uncomment to use Python 3 (default is Python 2) $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include ![]() 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 # PYTHON_INCLUDE := /usr/include/python2.7 \ # 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. # Homebrew puts openblas in a directory that is not on the standard search pathīLAS_INCLUDE := $(shell brew -prefix openblas)/includeīLAS_LIB := $(shell brew -prefix openblas)/lib # Leave commented to accept the defaults for your choice of BLAS # Custom (MKL/ATLAS/OpenBLAS) include and lib directories. # For CUDA = 9.0, comment the *_20 and *_21 lines for compatibility.ĬUDA_ARCH := -gencode arch=compute_20,code=sm_20 \ # CUDA architecture setting: going with all of them. ![]() # "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). # Contributions simplifying and improving our build system are welcome! 首先安装Miniconda安装包,并确保Miniconda的路径已经被加入 PATH,编辑 ~/.zshrc(或 bash_profile),添加 export PATH="/Users/frank/miniconda2/bin:$PATH"īrew install -fresh -vd snappy leveldb gflags glog szip lmdb opencv hdf5 openblasīrew install -build-from-source -with-python -fresh -vd protobufīrew install -build-from-source -fresh -vd boost boost-python
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |