4 /*----------------------------------------------------------------------*\
6 \*---------------------------------------------------------------------*/
8 /*--------------------------------------*\
10 \*-------------------------------------*/
12 extern bool isPiSequentiel_OK(int n
);
13 extern bool isPiOMPEntrelacerPromotionTab_Ok(int n
);
14 extern bool isPiOMPEntrelacerCritical_Ok(int n
);
15 extern bool isPiOMPEntrelacerAtomic_Ok(int n
);
16 extern bool isPiOMPforCritical_Ok(int n
);
17 extern bool isPiOMPforAtomic_Ok(int n
);
18 extern bool isPiOMPforPromotionTab_Ok(int n
);
19 extern bool isPiOMPforReduction_Ok(int n
);
21 /*----------------------------------------------------------------------*\
23 \*---------------------------------------------------------------------*/
30 TEST_ADD(TestPi::testSequentiel
);
32 TEST_ADD(TestPi::testEntrelacerPromotionTab
);
33 TEST_ADD(TestPi::testEntrelacerAtomic
);
34 TEST_ADD(TestPi::testEntrelacerCritical
);
36 TEST_ADD(TestPi::testAtomic
);
37 TEST_ADD(TestPi::testCritical
);
38 TEST_ADD(TestPi::testPromotionTab
);
39 TEST_ADD(TestPi::testForReduction
);
42 void TestPi::testSequentiel(void)
44 TEST_ASSERT(isPiSequentiel_OK(n
)==true);
47 void TestPi::testEntrelacerPromotionTab(void)
49 TEST_ASSERT(isPiOMPEntrelacerPromotionTab_Ok(n
)==true);
52 void TestPi::testEntrelacerAtomic(void)
54 TEST_ASSERT(isPiOMPEntrelacerAtomic_Ok(n
)==true);
57 void TestPi::testEntrelacerCritical(void)
59 TEST_ASSERT(isPiOMPEntrelacerCritical_Ok(n
)==true);
62 void TestPi::testCritical(void)
64 TEST_ASSERT(isPiOMPforCritical_Ok(n
)==true);
67 void TestPi::testAtomic(void)
69 TEST_ASSERT(isPiOMPforAtomic_Ok(n
)==true);
72 void TestPi::testPromotionTab(void)
74 TEST_ASSERT(isPiOMPforPromotionTab_Ok(n
)==true);
77 void TestPi::testForReduction(void)
79 TEST_ASSERT(isPiOMPforReduction_Ok(n
)==true);
82 /*----------------------------------------------------------------------*\
84 \*---------------------------------------------------------------------*/