Git Product home page Git Product logo

abhitronix / caffe-opencl-windows-amd Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 41.96 MB

Working Modified Caffe for AMD GPU's OpenCL for Windows 10 .

License: Other

CMake 3.56% Makefile 0.51% C++ 75.99% Shell 0.54% PowerShell 0.01% Cuda 7.51% MATLAB 0.59% Python 7.03% Batchfile 0.18% C 4.03% Dockerfile 0.05%
amd amdgpu caffe caffe-windows windows-10 opencl opencv microsoft visualstudio vs2017 python python3 amd-opencl amd64

caffe-opencl-windows-amd's Introduction

OpenCL Caffe Targeting AMD GPU's OpenCL (Modified to work with MSVC 2017 15.0 and Python 2.7.15) on Windows 10:

This is an experimental but working repo i.e. forked from official caffe's Opencl branch for targeting AMD GPUs Only. Forked from https://github.com/BVLC/caffe/commit/74312cfc64c07b69616c8d0d5e1b6b020670c783

Custom requirements for this branch:

  • Git Windows (Intalled and configured)
  • Microsoft Visuals 15.0 2017 installed and configured (as compiler).
  • Python 2.7.15 installed and configured (for building pycaffe)
  • Numpy (pip install numpy)
  • OpenCV installed (Latest will be good)
  • AMD GPU with Latest drivers installed properly
  • AMD APP SDK Windows(any version - Preferred-3.0) installed
  • ViennaCL Library (Latest version - do not compile or install) as backend.
  • AMD GPU ofcourse.

Configuring and compiling procedure:

Open Command Prompt and follow up:

  • git clone https://github.com/abhiTronix/caffe-opencl-windows-amd.git
  • cd caffe-opencl-windows-amd
  • git checkout opencl-windows-amd
  • mkdir build && cd build
  • cmake -G"Visual Studio 15 2017 Win64" -DBLAS=Open -DViennaCL_INCLUDE_DIR=<path to ViennaCL Library> -DOpenCV_DIR=<path to OpenCV build> -DOPENCL_LIBRARIES= <path to AMD APP SDK Static Library> ..
  • cmake --build . --target install --config release

Final Files can be found here: caffe/build/install

Other Custom distributions

Community

Join the chat at https://gitter.im/BVLC/caffe

Caffe is a deep learning framework made with expression, speed, and modularity in mind. It is developed by Berkeley AI Research (BAIR)/The Berkeley Vision and Learning Center (BVLC) and community contributors.

Caffe is released under the BSD 2-Clause license. The BAIR/BVLC reference models are released for unrestricted use.

caffe-opencl-windows-amd's People

Contributors

abhitronix avatar blgene avatar cdluminate avatar cypof avatar dgolden1 avatar eelstork avatar erictzeng avatar flx42 avatar intelfx avatar jamt9000 avatar jeffdonahue avatar jyegerlehner avatar kloudkl avatar longjon avatar lukeyeager avatar mavenlin avatar naibaf7 avatar philkr avatar psyhtest avatar qipeng avatar rbgirshick avatar ronghanghu avatar sasagalic-msft avatar sergeyk avatar sguada avatar shelhamer avatar tnarihi avatar willyd avatar yangqing avatar yosinski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

caffe-opencl-windows-amd's Issues

I can't build successfully

F:\caffe-opencl-windows-amd\build>cmake -G "Visual Studio 15 2017 Win64" -DBLAS=Open -DViennaCL_INCLUDE_DIR=F:\ViennaCL-1.7.1\ -DOpenCV_DIR=F:/opencv/build -DOPENCL_LIBRARIES=C:/TEMP/AMD_APP_SDK/3.0/lib/x86_64 ..
-- The C compiler identification is MSVC 19.10.25027.0
-- The CXX compiler identification is MSVC 19.10.25027.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.15", minimum required is "2.7.15")
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:44 (message):
  Could not find url for MSVC version = 1910 and Python version = 2.7.
Call Stack (most recent call first):
  CMakeLists.txt:116 (include)


-- Configuring incomplete, errors occurred!
See also "F:/caffe-opencl-windows-amd/build/CMakeFiles/CMakeOutput.log".

I don't know where the problem is.
thx.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.