I'm trying decide if my cl code has compiled cleanly and if not then to exit gracefull. I'm calling:
clGetProgramBuildInfo(*(stdacc->prg), *(stdacc->dev), CL_PROGRAM_BUILD_STATUS, 0, NULL, &space)
where space is an unsigned int
and
clGetProgramBuildInfo(*(stdacc->prg), *(stdacc->dev), CL_PROGRAM_BUILD_STATUS, sizeof(bOk), &bOk, NULL)
where bOk is a cl_build_status
and both end up with a segmenation fault.
Has anyone called this standard function with a successful return?
There's always a good chance that I've screwed up the arguments and made it past the compiler but I've tried LOTS of variations with no success.