Graph500-0.4.0: Graph500 benchmark-related definitions and data set generator.

Safe HaskellNone

G500.Read

Description

A module that reads files generated by Gen (graph500gen) program one directory level above.

Synopsis

Documentation

type Graph500Reader = IO (Maybe (UArray Int Index))Source

A synonym for IO action that performs a read.

mkGraph500ReaderSource

Arguments

:: Handle

File handle.

-> Int

Size of a read.

-> IO Graph500Reader 

Create a graph reader structure. The handle should be opened to read as a binary file. Also the handle gets captured in result of the function and will be closed at the end of operation.