public static extern CuResult CtxGetLimit(out IntPtr pvalue, CuLimit limit);
public static extern CuResult CtxSetLimit(CuLimit limit, IntPtr value);