Class Parallel2D
Similar to Parallel class in System.Threading.Tasks.Parallel
Inheritance
System.Object
Parallel2D
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: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
public class Parallel2D
Methods
For(Int32, Int32, Int32, Int32, Action<Int32, Int32>)
Work is distributed on J -- on I we assume a pragma simd Assume that memory access is j*N + i (coalesced in i) Still need to be improved -- both in C# and in AVX
Declaration
public static void For(int fromJInclusive, int toJExclusive, int fromIInclusive, int toIExclusive, Action<int, int> action)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fromJInclusive | |
System.Int32 | toJExclusive | |
System.Int32 | fromIInclusive | |
System.Int32 | toIExclusive | |
System.Action<System.Int32, System.Int32> | action |