Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
ocl_caching.cpp File Reference
#include "gmxpre.h"
#include "ocl_caching.h"
#include <assert.h>
#include <cctype>
#include <cstdio>
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/programcontext.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/stringutil.h"
#include "gromacs/utility/textreader.h"
#include "gromacs/utility/unique_cptr.h"
+ Include dependency graph for ocl_caching.cpp:

Description

Define infrastructure for OpenCL JIT compilation for Gromacs.

Author
Dimitrios Karkoulis dimit.nosp@m.ris..nosp@m.karko.nosp@m.ulis.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Anca Hamuraru anca@.nosp@m.stre.nosp@m.amcom.nosp@m.puti.nosp@m.ng.eu
Teemu Virolainen teemu.nosp@m.@str.nosp@m.eamco.nosp@m.mput.nosp@m.ing.e.nosp@m.u
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

std::string gmx::ocl::makeBinaryCacheFilename (const std::string &kernelFilename, cl_device_id deviceId)
 Construct the name for the binary cache file. More...
 
cl_program gmx::ocl::makeProgramFromCache (const std::string &filename, cl_context context, cl_device_id deviceId)
 Check if there's a valid cache available, and return it if so. More...
 
void gmx::ocl::writeBinaryToCache (cl_program program, const std::string &filename)
 Implement caching of OpenCL binaries. More...