Exemplo n.º 1
0
 /// <summary>
 /// Enables all compatible Cuda devices.
 /// </summary>
 /// <param name="builder">The builder instance.</param>
 /// <returns>The updated builder instance.</returns>
 public static Context.Builder Cuda(this Context.Builder builder) =>
 builder.Cuda(desc =>
              desc.Architecture.HasValue &&
              desc.InstructionSet.HasValue &&
              PTXCodeGenerator.SupportedInstructionSets.Contains(
                  desc.InstructionSet.Value));
Exemplo n.º 2
0
 /// <summary>
 /// Enables all compatible Cuda devices.
 /// </summary>
 /// <param name="builder">The builder instance.</param>
 /// <returns>The updated builder instance.</returns>
 public static Context.Builder Cuda(this Context.Builder builder) =>
 builder.Cuda(desc =>
              desc.Architecture.HasValue &&
              desc.InstructionSet.HasValue);