Coder Social home page Coder Social logo

titanxstall's Introduction

Titan X stall

This is a testing program to verify GPU stalls when running complex thrust sorts on an NVIDIA Titan X GPU. I've first come across this issue while working on the GPUSPH codebase, hence the weird structure of the test.

Instructions

Build with make, run with make test. Only tested on Linux.

You can customize build options by adding a Makefile.local file. This can be used e.g. to override the compute capability for which the program gets build (e.g. set CUFLAGS=-arch=sm_20 to build for a Fermi card).

If you want to run the program on a different device than the default and/or with a different number of elements than the default (5Mi), launch it manually. For example, to run on the 4th device with 10Mi elements, use:

./titanxstall --device 3 --elements $((1010241024))

(for example).

The --cache-alloc option can be passed to titanxstall to use a custom caching allocator in thrust in place of the default policy.

Results

The program runs forever, or until it crashes or the GPU stalls.

At every iteration, it will change some of the hashes and sort again.

During execution, a file in /dev/shm will keep you up to date on the current progress. Every thousandth iteration, something will also be shown on console.

If the info stream in /dev/shm doesn't update anymore, the GPU is stalling. If it's attached to a display (or has a watchdog enabled for any other reason), the GPU reset will trigger an error and crash the program, but if no watchdog is active, the program will just get stuck at the same iteration, so the only way to detect this has happened is by looking at the info stream.

(Lock-ups have been shown to occur as early as around 2K iterations, but also as late as 20K+ iterations, so you might need to leave the program running for 10 minutes or more.)

titanxstall's People

Contributors

oblomov avatar jaredhoberock avatar

Stargazers

abdul dakkak avatar

Watchers

 avatar James Cloos avatar

Forkers

seanbaxter

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.