Skip to content

shamazmazum/program-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

program-map

Build Status

program-map is a simple helper library for read-only mapping of files (like OpenCL programs) into memory. Example of use:

#include <program-map.h>

void do_something ()
{
    struct pm_program_handler ph;
    if (!pm_map_program (&ph, path_to_program)) {
        /*
         * pm_get_error() contains general information about an error. Detailed
         * information why this or another system call failed is in errno variable.
         */
        perror (pm_get_error ());
    }
    do_something_else_with_mapping (ph->space, ph->size);
    if (!pm_unmap_program (&ph)) {
        perror (pm_get_error ());
    }
}

About

Helper library to map OpenCL programs into memory

Resources

License

Stars

Watchers

Forks

Packages

No packages published