MCPcopy Create free account
hub / github.com/boostorg/compute / compile

Method compile

include/boost/compute/program.hpp:281–296  ·  view source on GitHub ↗

Compiles the program with \p options. \opencl_version_warning{1,2} \see_opencl_ref{clCompileProgram}

Source from the content-addressed store, hash-verified

279 ///
280 /// \see_opencl_ref{clCompileProgram}
281 void compile(const std::string &options = std::string())
282 {
283 const char *options_string = 0;
284
285 if(!options.empty()){
286 options_string = options.c_str();
287 }
288
289 cl_int ret = clCompileProgram(
290 m_program, 0, 0, options_string, 0, 0, 0, 0, 0
291 );
292
293 if(ret != CL_SUCCESS){
294 BOOST_THROW_EXCEPTION(opencl_error(ret));
295 }
296 }
297
298 /// Links the programs in \p programs with \p options in \p context.
299 ///

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 2

opencl_errorClass · 0.85
emptyMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36