public void MaxfTest() { var context = new CudaContext(); var data = new float[] { 2, 5, 8, 9, 6, 3, 5, 4, 0, 8, 8 }; float max = Thrust.Max(data); Assert.AreEqual(9, max); }
public void MaxiTest() { using (var context = new CudaContext()) { var data = new int[] { 2, 5, 8, 8, 6, 3, 5, 4, 0, 8, 8 }; int max = Thrust.Max(data); Assert.AreEqual(8, max); } }