Skip to content

Latest commit

Β 

History

History
133 lines (100 loc) Β· 4.8 KB

README.md

File metadata and controls

133 lines (100 loc) Β· 4.8 KB

Contributors Forks Stargazers

C++ Logo

A template for creating C++ header-only libraries accelerated with CUDA/Apple Metal

Built With

C++ CUDA Apple GitHub Actions

Preview

Video demonstration

Getting Started

Prerequisites

Before attempting to build this project, make sure you have GNU Make, and CMake installed on your machine.

Additionally, if you wish to utilize the GPU acceleration features, you will need to have CUDA Toolkit or Apple Metal installed on your machine.

you will need a C++ compiler that supports C++13, and a CUDA compatible GPU if you wish to use the CUDA acceleration features.

Installation

To get a local copy of the project up and running on your machine, follow these simple steps:

  1. Clone the project repository

    git clone https://github.com/Kaweees/KiwiCPP.git
    cd KiwiCPP
  2. Create a fresh build directory and navigate to it

    rm -rf build
    mkdir build
    cd build
  3. Configure the build system

    # Use for debugging
    clear && cmake -S .. -B . -DCMAKE_BUILD_TYPE=Debug
    # Use for releases
    clear && cmake -S .. -B . -DCMAKE_BUILD_TYPE=Release
  4. Build the project

    cmake --build ..

Project Structure

graphics/
β”œβ”€β”€ .github/                       - GitHub Actions CI/CD workflows
β”œβ”€β”€ include/                       - project header files
β”œβ”€β”€ src/                           - project source files
β”‚   └── main.c                     - Entry point, main function
β”œβ”€β”€ CMakeLists.txt                 - CMake build script
β”œβ”€β”€ LICENSE                        - project license
└── README.md                      - you are here

License

The source code for my website is distributed under the terms of the GNU General Public License v3.0, as I firmly believe that collaborating on free and open-source software fosters innovations that mutually and equitably beneficial to both collaborators and users alike. See LICENSE for details and more information.