Giter Club home page Giter Club logo

vulkanml's Introduction

vulkanML

Dependencies:

  • C++ 14
  • CMake
  • Vulkan SDK
  • vuh (vulkan compute library)
    • git clone https://github.com/mihhaiii/vuh
    • cd vuh
    • mkdir build
    • cd build
    • cmake -DCMAKE_INSTALL_PREFIX="path/where/to/install/vuh" ..
    • cmake --build . --target install

Build & Run instructions

  • git clone https://github.com/mihhaiii/vulkanML
  • cd vulkanML
  • mkdir build
  • cd build
  • cmake -DCMAKE_PREFIX_PATH="path/where/to/install/vuh" ..
  • cmake --build .
  • (windows) open vulkanML.sln, set test_project as startup project and hit F5

Important: To specify 64 bit architecture for Visual Studio add -A x64 option to the cmake generate commands above

test_project is an example project that links the vulkanML static library and uses it to make a simple MNIST inference.

To create a new project:

  • create a new folder in examples/
  • add to the examples/CMakeLists.txt file the following line: add_subdirectory(your_folder_name)
  • add a CMakeLists.txt file in the created folder (use examples/test_project/CMakeLists.txt as an example)
    • create the executable with your .cpp and .h files with add_executable(...)
    • link the vulkanML library with target_link_libraries(...) - this will also add the necessary include directories to your project
  • if you need new shaders just add them to the /shaders folder. The root CMakeLists.txt will automatically compile them at build time.
  • regenerate and rebuild the solution
  • (windows) open VS, set your project as the startup project and run the program

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.