All Projects → zylo117 → Tensorflow Gpu Macosx

zylo117 / Tensorflow Gpu Macosx

Licence: apache-2.0
Unoffcial NVIDIA CUDA GPU support version of Google Tensorflow for MAC OSX

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tensorflow Gpu Macosx

Deepnet
Deep.Net machine learning framework for F#
Stars: ✭ 99 (-3.88%)
Mutual labels:  gpu, tensor
Owon Vds1022
Unofficial release for the OWON VDS1022/I Oscilloscope
Stars: ✭ 63 (-38.83%)
Mutual labels:  osx, mac
Swim
A command line tool to switch the current input method by identifier for macOS.
Stars: ✭ 39 (-62.14%)
Mutual labels:  osx, mac
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+1218.45%)
Mutual labels:  osx, mac
Subethaedit
General purpose plain text editor for macOS. Widely known for its live collaboration feature.
Stars: ✭ 1,183 (+1048.54%)
Mutual labels:  osx, mac
Drlkit
A High Level Python Deep Reinforcement Learning library. Great for beginners, prototyping and quickly comparing algorithms
Stars: ✭ 29 (-71.84%)
Mutual labels:  gpu, tensor
Syncthing Macos
Frugal and native macOS Syncthing application bundle
Stars: ✭ 1,096 (+964.08%)
Mutual labels:  osx, mac
Xit
Mac OS X Git GUI
Stars: ✭ 700 (+579.61%)
Mutual labels:  osx, mac
Macqq
mac版QQ,swift,macOS,仿QQ mac端
Stars: ✭ 72 (-30.1%)
Mutual labels:  osx, mac
Reminders Cli
Command-line interface to interact with the Reminders.app
Stars: ✭ 67 (-34.95%)
Mutual labels:  osx, mac
Tvm
Open deep learning compiler stack for cpu, gpu and specialized accelerators
Stars: ✭ 7,494 (+7175.73%)
Mutual labels:  gpu, tensor
Neptunes
simple and reliable Last.fm scrobbler for iTunes and Spotify for macOS
Stars: ✭ 98 (-4.85%)
Mutual labels:  osx, mac
Tf Coriander
OpenCL 1.2 implementation for Tensorflow
Stars: ✭ 775 (+652.43%)
Mutual labels:  gpu, mac
Macvars
command library for scripting osx
Stars: ✭ 34 (-66.99%)
Mutual labels:  osx, mac
Macapps
个人收集的一些mac使用的不易找到的app,不断更新中。
Stars: ✭ 726 (+604.85%)
Mutual labels:  osx, mac
Ansible Osx Command Line Tools
An Ansible role for installing OS X Command Line Tools
Stars: ✭ 57 (-44.66%)
Mutual labels:  osx, mac
Coriander
Build NVIDIA® CUDA™ code for OpenCL™ 1.2 devices
Stars: ✭ 665 (+545.63%)
Mutual labels:  gpu, mac
Soundcast
Cast audio from macOS to Chromecast
Stars: ✭ 684 (+564.08%)
Mutual labels:  osx, mac
Nx
Multi-dimensional arrays (tensors) and numerical definitions for Elixir
Stars: ✭ 1,133 (+1000%)
Mutual labels:  gpu, tensor
Macchanger
 Change your mac address, for macOS
Stars: ✭ 75 (-27.18%)
Mutual labels:  osx, mac

tensorflow-gpu-macosx

Unoffcial NVIDIA CUDA GPU support version of Google Tensorflow 1.8 for MAC OSX 10.13

Description:

Since Google Tensorflow claimed that tensorflow-gpu no longer supports 
MAC OSX since 1.2.0 due to the OpenMP issue of clang of Apple,
I built this unoffcial tensorflow-gpu for MAC OSX so that
Hackintosh users or Mac users with eGPU can run tensorflow-gpu with CUDA.

Requirement:

1. Must use python3 instead of python2

2. Must be installed on MAC OSX 10.6+

3. Must install Nvidia GPU drivers

4. Must install Nvidia CUDA toolkit 9.1 (if not, you need to re-compile by yourself)

5. Must install Nvidia CUDA cudnn 7.0 (if not, you need to re-compile by yourself)

6. Must set up cuda environment (make sure 'nvcc -V' shows the cuda version '9.1')

7.CUDA compute capability is in [3.0,5.0] (if not, you need to re-compile to get a better performance)

HOW TO BUILD TENSORFLOW-GPU FOR MAC OSX?

NOTICE

1.INSTALL NVIDIA DRIVER

2.INSTALL NVIDIA CUDA TOOLKIT (9.1 OR LATER)

3.INSTALL NVIDIA CUDA CUDNN (7.0 OR LATER)

4.SET UP CUDA ENVIRONMENT (MAKE SURE

nvcc -V

WORKS AND PRINTS CUDA VERSION)

5.INSTALL XCODE/COMMAND LINE TOOL 9.3+

6.INSTALL HOMEBREW

7.INSTALL COREUTILS USING

brew install coreutils

8.INSTALL LLVM USING

brew install llvm

9.INSTALL OPENMP USING

brew install cliutils/apple/libomp

10.INSTALL BAZEL 0.16.1 FROM GITHUB (https://github.com/bazelbuild/bazel/releases, newer/older version may cause failure)

12.GIT CLONE TENSORFLOW

git clone https://github.com/zylo117/tensorflow-gpu-macosx

13.CD TENSORFLOW SOURCE DIR

14.CONFIG(skip this step if your CUDA version is same as mine)

./configure
  #Please specify the location of python.: Accept the default option
    #Please input the desired Python library path to use.:  Accept the default option
    #Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
    #Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
    #Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
    #Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
    #Do you wish to build TensorFlow with GDR support? [y/N]: n
    #Do you wish to build TensorFlow with VERBS support? [y/N]: n
    #Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: n
    #Do you wish to build TensorFlow with CUDA support? [y/N]: y
    #Please specify the CUDA SDK version you want to use, e.g. 7.0.: 9.1
    #Please specify the location where CUDA 9.1 toolkit is installed.: Accept the default option
    #Please specify the cuDNN version you want to use.: 7
    #Please specify the location where cuDNN 7 library is installed.: Accept the default option
    ##Please specify a list of comma-separated Cuda compute capabilities you want to build with.
    ##You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. (GTX10X0: 6.1, GTX9X0: 5.2)
    #Please note that each additional compute capability significantly increases your build time and binary size.: 6.1,5.2,5.0,3.0
    #Do you want to use clang as CUDA compiler? [y/N]: n
    #Please specify which gcc should be used by nvcc as the host compiler.: Accept the default option
    #Do you wish to build TensorFlow with MPI support? [y/N]: n
    #Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified:  Accept the default option
    #Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n

export CUDA_HOME=/usr/local/cuda
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib
export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
export PATH=$DYLD_LIBRARY_PATH:$PATH

# bazel clean --expunge # Use this if you failed to compile before.

15.BUILD

bazel build --config=cuda --config=opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package

16.NCCL PATCH

You can compile NCCL_OPS by yourself (not necessary):

gcc -c -fPIC ./nccl_patched/nccl_ops.cc -o ./nccl_patched/_nccl_ops.o

gcc ./nccl_patched/_nccl_ops.o -shared -o ./nccl_patched/_nccl_ops.so

Then replace the original nccl lib:

mv ./bazel-bin/tensorflow/contrib/nccl/python/ops/_nccl_ops.so ./bazel-bin/tensorflow/contrib/nccl/python/ops/_nccl_ops.so.bk

cp ./nccl_patched/_nccl_ops.so ./bazel-bin/tensorflow/contrib/nccl/python/ops/

16.BUILD PYTHON BINDING USING

./bazel-bin/tensorflow/tools/pip_package/build_pip_package/ ./tmp/tensorflow_pkg

17.INSTALL PYTHON WHEEL USING 'pip3 install /tmp/tensorflow_pkg/*.whl'

18.REINSTALL XCODE/COMMAND LINE TOOL 9

NOTICE

This version will not supports multi-cpu/machine training.

It's not like you are gonna need it anyway.

INSTALL:

**Either compile from src through pypi (not recommended)**
    pip3 install tensorflow-gpu-macosx
**or install from relese (the easiest way)**
    pip3 install *.whl
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].