Пример #1
0
 /// <summary>
 /// Split the aggregate device into as many smaller aggregate devices as can
 /// be created, each containing <paramref name="partitionSize"/> compute units.
 /// If <paramref name="partitionSize"/> does not divide evenly into
 /// <see cref="MaxComputeUnits"/>, then the remaining compute units are not used.
 /// </summary>
 /// <param name="partitionSize">The size of the partitions to be created.</param>
 /// <returns>A collection of sub-devices representing the created partitions.</returns>
 public DisposableCollection <Device> PartitionEqually(int partitionSize)
 {
     return(UnsafeNativeMethods.PartitionEqually(ID, partitionSize));
 }