Code Monkey home page Code Monkey logo

cuda-musclework's Introduction

Abstract

CUDA's programming paradigm (SIMD) is different than serial programming in C/C++. This program compares the muscle work problem

High Level Design

In the serial program, two arrays are created. Force and distance arrays are then iterated through in order to add to a final sum. In the parallel program, three arrays are created. Force and distance arrays are generated. Then, a result array is generated by multiple threads. When the result array is complete, addition of the final sum is performed serially.

Implementation

For the serial program, Clang/LLVM 3.6 is used with level 2 compiler optimizations enabled. The parallel GPU program is compiled with Nvidia's CUDA compiler driver V7.5 that wraps gcc. The serial program and GPU program results were the same in every test.

Testing Methodology

A Macbook Pro with a Core i5 at 2.7GHz and 8GB RAM is used for the serial program. GVSU's Seawolf with a Tesla K40c is used for the GPU version of the program. Raw data results: Raw Data

Graph: Graph

Discussion

The serial program with compiler operation does well until the number of vertices get above 2 million. Parallel speedup heavily depends on the amount of data given.

cuda-musclework's People

Watchers

James Cloos avatar Brett VanderHaar avatar

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.