Class Parallel
The main user-facing interface to Turbo. This class defines methods that can compile and launch GPU kernels.
Inheritance
System.Object
Parallel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Turbo
Assembly: Turbo.dll
Syntax
public static class Parallel
Methods
| Improve this Doc View SourceForAsync(Int32, Action)
Runs a kernel, specified as a nullary function.
Declaration
public static Task ForAsync(int threadCount, Action kernel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | threadCount | The number of threads to run the kernel with. |
System.Action | kernel | The kernel to run. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
ForAsync(Int32, Action<Int32>)
Runs a kernel, specified as a unary function that takes a thread ID as a parameter.
Declaration
public static Task ForAsync(int threadCount, Action<int> kernel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | threadCount | The number of threads to run the kernel with. |
System.Action<System.Int32> | kernel | The kernel to run. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |