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)
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)
def setUp(self): self._parallel = metadata.Parallel( data=test_data.METADATA_FOR_SIMPLE_CODE_FUNCTION_LOOP ) self._directive_factory = parallelizer.DirectiveFactory()
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)