예제 #1
0
        private void FloatSumTest()
        {
            BasicTestCase[] sumTestArr = new BasicTestCase[]
            {
                /*
                 * new FloatSumTest(),
                 * new FloatSumTest_AVX(),
                 * new FloatSumTest_AVX4Loop(),
                 * new FloatSumTest_DLL(),
                 */
                new FloatSumTest_AVX(),
                new FloatSumTest_AVXPack(),
                new FloatSumTest_AVX4Loop(),
                new FloatSumTest_DLL(),

                // new FloatSumTest_CUDA(),
                new FloatSumTest_CUDA2(),
                new FloatSumTest_CUDA3(),
            };

            ResultTestBlock.Text = "";
            foreach (BasicTestCase test in sumTestArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;
            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";

            foreach (BasicTestCase test in sumTestArr)
            {
                // test.RunTestMP();
                ResultTestBlock.Text += test.Reslut;
            }
        }
예제 #2
0
        private void FloatSumTest()
        {
            BasicTestCase[] sumTestArr = new BasicTestCase[]
            {
                /*
                new FloatSumTest(),
                new FloatSumTest_AVX(),
                new FloatSumTest_AVX4Loop(),
                new FloatSumTest_DLL(),
                */
                new FloatSumTest_AVX(),
                new FloatSumTest_AVXPack(),
                new FloatSumTest_AVX4Loop(),
                new FloatSumTest_DLL(),

                // new FloatSumTest_CUDA(),
                new FloatSumTest_CUDA2(),
                new FloatSumTest_CUDA3(),
            };

            ResultTestBlock.Text = "";
            foreach (BasicTestCase test in sumTestArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;

            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";

            foreach (BasicTestCase test in sumTestArr)
            {
                // test.RunTestMP();
                ResultTestBlock.Text += test.Reslut;
            }
        }
예제 #3
0
        private void NEATNetworkTest()
        {
            BasicTestCase[] testArr = new BasicTestCase[]
            {
                new NEATNetworkTest(),
                new NEATNetworkTest_DLL(),
            };

            ResultTestBlock.Text  = "";
            ResultTestBlock.Text += testArr[0].Description;
            foreach (BasicTestCase test in testArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;
            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";
        }
예제 #4
0
        private void SigmoidTest()
        {
            ResultTestBlock.Text = "";
            BasicTestCase[] sumTestArr = new BasicTestCase[]
            {
                new SigmoidTest_DLL(),
                new SigmoidTest(),
                new SigmoidTest_AVX(),
                new SigmoidTest_DLL(),
            };
            ResultTestBlock.Text += sumTestArr[0].Description;

            foreach (BasicTestCase test in sumTestArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;
            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";
        }
예제 #5
0
        private void NEATNetworkTest()
        {
            BasicTestCase[] testArr = new BasicTestCase[]
            {
                new NEATNetworkTest(),
                new NEATNetworkTest_DLL(),
            };

            ResultTestBlock.Text = "";
            ResultTestBlock.Text += testArr[0].Description;
            foreach (BasicTestCase test in testArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;

            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";
        }
예제 #6
0
        private void SigmoidTest()
        {
            ResultTestBlock.Text = "";
            BasicTestCase[] sumTestArr = new BasicTestCase[]
            {
                new SigmoidTest_DLL(),
                new SigmoidTest(),
                new SigmoidTest_AVX(),
                new SigmoidTest_DLL(),
            };
            ResultTestBlock.Text += sumTestArr[0].Description;

            foreach (BasicTestCase test in sumTestArr)
            {
                test.RunTest();
                ResultTestBlock.Text += test.Reslut;
            }
            ResultTestBlock.Text += "\r\n=================\r\n\r\n";
        }