Lines Matching refs:error
309 /*! \brief Create a new CL error exception for a given error code
312 * \param err error code value.
323 /*! \brief Get error string associated with exception
325 * \return A memory pointer to the error message string.
337 /*! \brief Get error code associated with exception
339 * \return The error code.
464 #define __VECTOR_CAPACITY_ERR __ERR_STR(Vector capacity error)
2523 cl_int error;
2534 notifyFptr, data, &error);
2536 detail::errHandler(error, __CREATE_CONTEXT_ERR);
2538 *err = error;
2553 cl_int error;
2560 notifyFptr, data, &error);
2562 detail::errHandler(error, __CREATE_CONTEXT_ERR);
2564 *err = error;
2583 cl_int error;
2591 error = Platform::get(&platforms);
2592 if (error != CL_SUCCESS) {
2593 detail::errHandler(error, __CREATE_CONTEXT_FROM_TYPE_ERR);
2595 *err = error;
2610 error = platforms[i].getDevices(type, &devices);
2615 // We do error checking next anyway, and can throw there if needed
2619 if (error != CL_SUCCESS && error != CL_DEVICE_NOT_FOUND) {
2620 detail::errHandler(error, __CREATE_CONTEXT_FROM_TYPE_ERR);
2622 *err = error;
2645 properties, type, notifyFptr, data, &error);
2647 detail::errHandler(error, __CREATE_CONTEXT_FROM_TYPE_ERR);
2649 *err = error;
2712 cl_int error;
2718 &error);
2722 default_error_ = error;
2830 cl_int error;
2833 Context context = Context::getDefault(&error);
2834 detail::errHandler(error, __CREATE_CONTEXT_ERR);
2836 if (error != CL_SUCCESS) {
2838 *err = error;
2999 cl_int error;
3002 &error);
3004 detail::errHandler(error, __CREATE_USER_EVENT_ERR);
3006 *err = error;
3189 cl_int error;
3190 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error);
3192 detail::errHandler(error, __CREATE_BUFFER_ERR);
3194 *err = error;
3213 cl_int error;
3217 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error);
3219 detail::errHandler(error, __CREATE_BUFFER_ERR);
3221 *err = error;
3239 cl_int error;
3257 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
3259 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);
3262 detail::errHandler(error, __CREATE_BUFFER_ERR);
3264 *err = error;
3268 error = cl::copy(startIterator, endIterator, *this);
3269 detail::errHandler(error, __CREATE_BUFFER_ERR);
3271 *err = error;
3354 cl_int error;
3360 &error);
3362 detail::errHandler(error, __CREATE_SUBBUFFER_ERR);
3364 *err = error;
3415 cl_int error;
3420 &error);
3422 detail::errHandler(error, __CREATE_GL_BUFFER_ERR);
3424 *err = error;
3501 cl_int error;
3506 &error);
3508 detail::errHandler(error, __CREATE_GL_BUFFER_ERR);
3510 *err = error;
3679 cl_int error;
3692 &error);
3694 detail::errHandler(error, __CREATE_IMAGE_ERR);
3696 *err = error;
3764 cl_int error;
3778 &error);
3780 detail::errHandler(error, __CREATE_IMAGE_ERR);
3782 *err = error;
3843 cl_int error;
3859 &error);
3861 detail::errHandler(error, __CREATE_IMAGE_ERR);
3863 *err = error;
3933 cl_int error;
3966 &error);
3968 detail::errHandler(error, __CREATE_IMAGE_ERR);
3970 *err = error;
3978 context(), flags,&format, width, height, row_pitch, host_ptr, &error);
3980 detail::errHandler(error, __CREATE_IMAGE2D_ERR);
3982 *err = error;
4065 cl_int error;
4072 &error);
4074 detail::errHandler(error, __CREATE_GL_TEXTURE_2D_ERR);
4076 *err = error;
4151 cl_int error;
4169 &error);
4171 detail::errHandler(error, __CREATE_IMAGE_ERR);
4173 *err = error;
4244 cl_int error;
4279 &error);
4281 detail::errHandler(error, __CREATE_IMAGE_ERR);
4283 *err = error;
4292 slice_pitch, host_ptr, &error);
4294 detail::errHandler(error, __CREATE_IMAGE3D_ERR);
4296 *err = error;
4377 cl_int error;
4384 &error);
4386 detail::errHandler(error, __CREATE_GL_TEXTURE_3D_ERR);
4388 *err = error;
4461 cl_int error;
4468 &error);
4470 detail::errHandler(error, __CREATE_GL_TEXTURE_ERR);
4472 *err = error;
4545 cl_int error;
4550 &error);
4552 detail::errHandler(error, __CREATE_GL_RENDER_BUFFER_ERR);
4554 *err = error;
4675 cl_int error;
4681 &error);
4683 detail::errHandler(error, __CREATE_SAMPLER_ERR);
4685 *err = error;
5032 cl_int error;
5040 context(), (cl_uint)1, &strings, &length, &error);
5042 detail::errHandler(error, __CREATE_PROGRAM_WITH_SOURCE_ERR);
5044 if (error == CL_SUCCESS && build) {
5046 error = ::clBuildProgram(
5054 detail::errHandler(error, __BUILD_PROGRAM_ERR);
5058 *err = error;
5068 cl_int error;
5074 context(), (cl_uint)1, &strings, &length, &error);
5076 detail::errHandler(error, __CREATE_PROGRAM_WITH_SOURCE_ERR);
5078 if (error == CL_SUCCESS && build) {
5080 error = ::clBuildProgram(
5088 detail::errHandler(error, __BUILD_PROGRAM_ERR);
5092 *err = error;
5101 cl_int error;
5113 context(), (cl_uint)n, strings, lengths, &error);
5115 detail::errHandler(error, __CREATE_PROGRAM_WITH_SOURCE_ERR);
5117 *err = error;
5147 cl_int error;
5153 error = CL_INVALID_VALUE;
5154 detail::errHandler(error, __CREATE_PROGRAM_WITH_BINARY_ERR);
5156 *err = error;
5183 : NULL, &error);
5185 detail::errHandler(error, __CREATE_PROGRAM_WITH_BINARY_ERR);
5187 *err = error;
5203 cl_int error;
5217 &error);
5219 detail::errHandler(error, __CREATE_PROGRAM_WITH_BUILT_IN_KERNELS_ERR);
5221 *err = error;
5494 cl_int error;
5496 object_ = ::clCreateKernel(program(), name, &error);
5497 detail::errHandler(error, __CREATE_KERNEL_ERR);
5500 *err = error;
5523 cl_int error;
5525 Context context = Context::getDefault(&error);
5526 detail::errHandler(error, __CREATE_CONTEXT_ERR);
5528 if (error != CL_SUCCESS) {
5530 *err = error;
5537 context(), device(), properties, &error);
5539 detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR);
5541 *err = error;
5553 cl_int error;
5555 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
5557 detail::errHandler(error, __CREATE_CONTEXT_ERR);
5559 if (error != CL_SUCCESS)
5562 *err = error;
5567 object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
5569 detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR);
5572 *err = error;
5583 cl_int error;
5585 context(), device(), properties, &error);
5587 detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR);
5589 *err = error;
5648 cl_int error;
5650 Context context = Context::getDefault(&error);
5651 detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR);
5653 if (error != CL_SUCCESS) {
5655 *err = error;
5661 default_ = CommandQueue(context, device, 0, &error);
5663 detail::errHandler(error, __CREATE_COMMAND_QUEUE_ERR);
5665 *err = error;
5671 default_error_ = error;
6188 cl_int error;
6194 &error);
6196 detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR);
6198 *err = error;
6200 if (event != NULL && error == CL_SUCCESS)
6219 cl_int error;
6227 &error);
6229 detail::errHandler(error, __ENQUEUE_MAP_IMAGE_ERR);
6231 *err = error;
6233 if (event != NULL && error == CL_SUCCESS)
6635 cl_int error;
6651 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
6653 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);
6656 detail::errHandler(error, __CREATE_BUFFER_ERR);
6658 *err = error;
6662 CommandQueue queue(context, 0, &error);
6663 detail::errHandler(error, __CREATE_BUFFER_ERR);
6665 *err = error;
6668 error = cl::copy(queue, startIterator, endIterator, *this);
6669 detail::errHandler(error, __CREATE_BUFFER_ERR);
6671 *err = error;
6686 cl_int error;
6704 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
6707 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);
6710 detail::errHandler(error, __CREATE_BUFFER_ERR);
6712 *err = error;
6716 error = cl::copy(queue, startIterator, endIterator, *this);
6717 detail::errHandler(error, __CREATE_BUFFER_ERR);
6719 *err = error;
6733 cl_int error;
6734 CommandQueue queue = CommandQueue::getDefault(&error);
6736 if (error != CL_SUCCESS) {
6737 return error;
6752 cl_int error;
6753 CommandQueue queue = CommandQueue::getDefault(&error);
6755 if (error != CL_SUCCESS) {
6756 return error;
6772 cl_int error;
6773 CommandQueue queue = CommandQueue::getDefault(&error);
6774 detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR);
6776 *err = error;
6784 &error);
6786 detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR);
6788 *err = error;
6799 cl_int error;
6800 CommandQueue queue = CommandQueue::getDefault(&error);
6801 detail::errHandler(error, __ENQUEUE_MAP_BUFFER_ERR);
6802 if (error != CL_SUCCESS) {
6803 return error;
6830 cl_int error;
6831 CommandQueue queue = CommandQueue::getDefault(&error);
6833 if (error != CL_SUCCESS) {
6834 return error;
6848 cl_int error;
6849 CommandQueue queue = CommandQueue::getDefault(&error);
6850 if (error != CL_SUCCESS)
6851 return error;
6864 cl_int error;
6865 CommandQueue queue = CommandQueue::getDefault(&error);
6866 if (error != CL_SUCCESS)
6867 return error;
6881 cl_int error;
6887 static_cast<DataType*>(queue.enqueueMapBuffer(buffer, CL_TRUE, CL_MAP_WRITE, 0, byteLength, 0, 0, &error));
6889 if( error != CL_SUCCESS ) {
6890 return error;
6902 error = queue.enqueueUnmapMemObject(buffer, pointer, 0, &endEvent);
6904 if( error != CL_SUCCESS ) {
6905 return error;
6920 cl_int error;
6926 static_cast<DataType*>(queue.enqueueMapBuffer(buffer, CL_TRUE, CL_MAP_READ, 0, byteLength, 0, 0, &error));
6928 if( error != CL_SUCCESS ) {
6929 return error;
6933 error = queue.enqueueUnmapMemObject(buffer, pointer, 0, &endEvent);
6935 if( error != CL_SUCCESS ) {
6936 return error;
6957 cl_int error;
6958 CommandQueue queue = CommandQueue::getDefault(&error);
6960 if (error != CL_SUCCESS) {
6961 return error;
6993 cl_int error;
6994 CommandQueue queue = CommandQueue::getDefault(&error);
6996 if (error != CL_SUCCESS) {
6997 return error;
7028 cl_int error;
7029 CommandQueue queue = CommandQueue::getDefault(&error);
7031 if (error != CL_SUCCESS) {
7032 return error;
7061 cl_int error;
7062 CommandQueue queue = CommandQueue::getDefault(&error);
7064 if (error != CL_SUCCESS) {
7065 return error;
7091 cl_int error;
7092 CommandQueue queue = CommandQueue::getDefault(&error);
7094 if (error != CL_SUCCESS) {
7095 return error;
7119 cl_int error;
7120 CommandQueue queue = CommandQueue::getDefault(&error);
7122 if (error != CL_SUCCESS) {
7123 return error;
7145 cl_int error;
7146 CommandQueue queue = CommandQueue::getDefault(&error);
7148 if (error != CL_SUCCESS) {
7149 return error;
7171 cl_int error;
7172 CommandQueue queue = CommandQueue::getDefault(&error);
7174 if (error != CL_SUCCESS) {
7175 return error;
7191 cl_int error;
7192 CommandQueue queue = CommandQueue::getDefault(&error);
7194 if (error != CL_SUCCESS) {
7195 return error;
7203 cl_int error;
7204 CommandQueue queue = CommandQueue::getDefault(&error);
7206 if (error != CL_SUCCESS) {
7207 return error;