示例#1
0
 /// <summary>
 /// Enables all compatible OpenCL devices.
 /// </summary>
 /// <param name="builder">The builder instance.</param>
 /// <returns>The updated builder instance.</returns>
 public static Context.Builder OpenCL(this Context.Builder builder) =>
 builder.OpenCL(id => id.CVersion >= CLBackend.MinimumVersion);
示例#2
0
 /// <summary>
 /// Enables all compatible OpenCL devices.
 /// </summary>
 /// <param name="builder">The builder instance.</param>
 /// <returns>The updated builder instance.</returns>
 public static Context.Builder OpenCL(this Context.Builder builder) =>
 builder.OpenCL(id => id.CLStdVersion >= CLBackend.MinimumVersion &&
                id.Capabilities.GenericAddressSpace);