Git Product home page Git Product logo

cuda-reduce-max-with-index's Introduction

Introduction

This sample was created to demonstrate and measure speed of searching for max element and its index in CUDA with different algorithms comparing to C++ STL max_element function.

Build

  • Download and install Visual Studio 2017
  • Download and install CUDA
    • Download CUDA Toolkit 10.0
    • Launch the downloaded installer package
    • Read and accept the EULA
    • Select "Next" to download and install all components
    • Once the download completes, the installation will begin automatically
    • Follow the steps of installation wizard
    • Finish installation
  • Download and install CMake
  • Get the sources
    • git clone https://github.com/cuprumator/cuda-reduce-max-with-index.git into c:\cuda-reduce-max-with-index (destination dir can be anything, c:\cuda-reduce-max-with-index is used here just for the reference)
  • Generate Visual Studio project files
    • Launch CMake (cmake-gui) from the start menu
    • Set "Where is the source code" to c:\cuda-reduce-max-with-index
    • Set "Where to build the binaries" to c:\cuda-reduce-max-with-index\bin
    • Click "Generate"
    • Choose "Visual Studio 15 2017 Win64"
    • Click "Finish"
    • Click "Open Project" or launch (may not be available for CUDA projects) c:\cuda-reduce-max-with-index\bin\cuda-reduce-max-with-index.sln
  • Build
    • Set Solution Configurations
    • Choose from the main menu "Build->Build solution"
    • Navigate to c:\cuda-reduce-max-with-index\bin\<configuration output folder> and get ReduceMaxWithIndex.exe
  • Build with msbuild.exe
    • msbuild.exe bin/ReduceMaxWithIndex.exe.sln /t:Build /p:Configuration=Release

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.