MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / buildProgramFromSource

Method buildProgramFromSource

src/library/fft_binary_lookup.cpp:602–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602cl_program FFTBinaryLookup::buildProgramFromSource(const char * source,
603 cl_context context,
604 cl_device_id device,
605 cl_int & err,
606 const char * options)
607{
608 cl_program program = clCreateProgramWithSource(context, 1, (const char **)&source, NULL, &err);
609
610 if (err != CL_SUCCESS)
611 return NULL;
612
613 err = clBuildProgram(program,
614 1, /* FIXME: 1 device */
615 &device,
616 options,
617 NULL,
618 NULL);
619
620 if (err != CL_SUCCESS)
621 return NULL;
622
623 return program;
624}
625
626
627

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected