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

Method buildProgramFromSource

src/library/blas/generic/binary_lookup.cc:531–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531cl_program BinaryLookup::buildProgramFromSource(const char * source,
532 cl_context context,
533 cl_device_id device,
534 cl_int & err,
535 const char * options)
536{
537 cl_program program = clCreateProgramWithSource(context, 1, (const char **)&source, NULL, &err);
538
539 if (err != CL_SUCCESS)
540 return NULL;
541
542 err = clBuildProgram(program,
543 1, /* FIXME: 1 device */
544 &device,
545 options,
546 NULL,
547 NULL);
548
549 if (err != CL_SUCCESS)
550 return NULL;
551
552 return program;
553}
554
555
556

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected