• Home
  • Raw
  • Download

Lines Matching refs:CHECK_CU

53 #define CHECK_CU(x) FF_CUDA_CHECK_DL(device_ctx, cu, x)  macro
89 CHECK_CU(cu->cuCtxPushCurrent(hwctx->cuda_ctx)); in cuda_buffer_free()
91 CHECK_CU(cu->cuMemFree((CUdeviceptr)data)); in cuda_buffer_free()
93 CHECK_CU(cu->cuCtxPopCurrent(&dummy)); in cuda_buffer_free()
108 err = CHECK_CU(cu->cuCtxPushCurrent(hwctx->cuda_ctx)); in cuda_pool_alloc()
112 err = CHECK_CU(cu->cuMemAlloc(&data, size)); in cuda_pool_alloc()
118 CHECK_CU(cu->cuMemFree(data)); in cuda_pool_alloc()
123 CHECK_CU(cu->cuCtxPopCurrent(&dummy)); in cuda_pool_alloc()
145 err = CHECK_CU(cu->cuDeviceGetAttribute(&priv->tex_alignment, in cuda_frames_init()
236 ret = CHECK_CU(cu->cuCtxPushCurrent(hwctx->cuda_ctx)); in cuda_transfer_data()
264 ret = CHECK_CU(cu->cuMemcpy2DAsync(&cpy, hwctx->stream)); in cuda_transfer_data()
270 ret = CHECK_CU(cu->cuStreamSynchronize(hwctx->stream)); in cuda_transfer_data()
276 CHECK_CU(cu->cuCtxPopCurrent(&dummy)); in cuda_transfer_data()
290 CHECK_CU(cu->cuDevicePrimaryCtxRelease(hwctx->internal->cuda_device)); in cuda_device_uninit()
292 CHECK_CU(cu->cuCtxDestroy(hwctx->cuda_ctx)); in cuda_device_uninit()
343 ret = CHECK_CU(cu->cuDevicePrimaryCtxGetState(hwctx->internal->cuda_device, in cuda_context_init()
352 ret = CHECK_CU(cu->cuDevicePrimaryCtxSetFlags(hwctx->internal->cuda_device, in cuda_context_init()
358 ret = CHECK_CU(cu->cuDevicePrimaryCtxRetain(&hwctx->cuda_ctx, in cuda_context_init()
363 ret = CHECK_CU(cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, in cuda_context_init()
368 CHECK_CU(cu->cuCtxPopCurrent(&dummy)); in cuda_context_init()
395 ret = CHECK_CU(cu->cuInit(0)); in cuda_device_create()
399 ret = CHECK_CU(cu->cuDeviceGet(&hwctx->internal->cuda_device, device_idx)); in cuda_device_create()
456 ret = CHECK_CU(cu->cuInit(0)); in cuda_device_derive()
460 ret = CHECK_CU(cu->cuDeviceGetCount(&device_count)); in cuda_device_derive()
469 ret = CHECK_CU(cu->cuDeviceGet(&dev, i)); in cuda_device_derive()
473 ret = CHECK_CU(cu->cuDeviceGetUuid(&uuid, dev)); in cuda_device_derive()