cpp/gpu_cpp_darcy/opencl-master/lbm2d/2dLB_ocl.cpp
/// Load the kernel in from the file name into a string object
Load the kernel in from the file name into a string object
Load the kernel in from the file name into a string object
inline std::string load_kernel_source(std::string&& name)
{
    std::ifstream in(name.c_str());
    std::string source_code((std::istreambuf_iterator<char>(in)), std::istreambuf_iterator<char>());
    return source_code;
}
inline std :: string load_kernel_source ( std :: string && name ) { std :: ifstream in ( name . c_str ( ) ) ; std :: string source_code ( ( std :: istreambuf_iterator < char > ( in ) ) , std :: istreambuf_iterator < char > ( ) ) ; return source_code ; }
Load the kernel in from the file name into a string object
Load the kernel in from the file name into a string object