示例#1
0
    def setUp(self):
        # Creating the OpenMP parallelizer
        self._omp = parallelizer.OpenMP(
            raw_code=test_data.SIMPLE_CODE_FUNCTION_LOOP)

        # Creation paralellization metadata object
        self._parallel = metadata.Parallel(
            data=test_data.METADATA_FOR_SIMPLE_CODE_FUNCTION_LOOP)

        # Creation a parallelization metadata with errors
        self._parallel_with_errors = metadata.Parallel(
            data=test_data.METADATA_FOR_SIMPLE_CODE_FUNCTION_LOOP_WITH_ERRORS)
示例#2
0
    def setUp(self):
        # Creating the OpenMP parallelizer
        self._acc = parallelizer.OpenACC(
            raw_code=test_data.SIMPLE_CODE_FUNCTION_LOOP)

        # Creation paralellization metadata object
        self._parallel = metadata.Parallel(
            data=test_data.METADATA_FOR_SIMPLE_CODE_FUNCTION_LOOP)
示例#3
0
    def setUp(self):
        self._parallel = metadata.Parallel(
            data=test_data.METADATA_FOR_SIMPLE_CODE_FUNCTION_LOOP
        )

        self._directive_factory = parallelizer.DirectiveFactory()
示例#4
0
 def test_parallel_metadata_object_creation(self):
     parallel_metadata = metadata.Parallel(file_path=self._file_path_1)
     self.assertIsInstance(parallel_metadata, metadata.Parallel)
     self.assertIsInstance(parallel_metadata.data, dict)