Beispiel #1
0
        public void TestASUMInVectorWhole()
        {
            CreateRandomData(_hostInput1);
            _gpu.CopyToDevice(_hostInput1, _devPtr1);
            float sum = _blas.ASUM(_devPtr1);

            _gpu.CopyFromDevice(_devPtr1, _hostOutput1);
            Assert.AreEqual(_hostInput1.Sum(), sum);
        }