loki.transformations.data_offload.tests.test_offload_deepcopy
Functions
|
Check the correct generation of deepcopy for array_arg. |
|
Check the generated deepcopy for type(geom_type) :: geometry. |
|
Check the generated deepcopy for type(other_variable_type) :: variable. |
|
Check the generated deepcopy for type(struct_type). |
|
Check the var_ptr member of type(struct_type) :: struct. |
|
Check generated copy to device for type(variable_type) variables. |
|
Check generated host pull-back for type(variable_type) variables. |
|
Check generated wipe for type(variable_type) variables. |
Default configuration dict with basic options. |
|
|
Test the creation of a typedef config for |
|
Test the utility to wrap a given body in a loop nest. |
|
Test the analysis for the data offload deepcopy generation. |
Test the generation of host-device deepcopy. |
- fixture_deepcopy_code()
- fixture_expected_analysis()
- fixture_config()
Default configuration dict with basic options.
- test_offload_deepcopy_analysis(frontend, config, deepcopy_code, expected_analysis, output_analysis, tmp_path, caplog)
Test the analysis for the data offload deepcopy generation.
- check_array_arg(mode, pragmas)
Check the correct generation of deepcopy for array_arg.
- check_variable_type_host(var, conds)
Check generated host pull-back for type(variable_type) variables.
- check_variable_type_device(var, conds, access)
Check generated copy to device for type(variable_type) variables.
- check_variable_type_wipe(var, conds)
Check generated wipe for type(variable_type) variables.
- check_other_variable_type(mode, conds, pragmas, routine)
Check the generated deepcopy for type(other_variable_type) :: variable.
- check_geometry(conds, pragmas, routine)
Check the generated deepcopy for type(geom_type) :: geometry.
- check_struct(mode, conds, pragmas, routine)
Check the generated deepcopy for type(struct_type).
- check_struct_var_ptr(mode, conds)
Check the var_ptr member of type(struct_type) :: struct.
- test_offload_deepcopy_transformation(frontend, config, deepcopy_code, present, mode, tmp_path)
Test the generation of host-device deepcopy.
- test_loop_nest_wrapping(frontend, depth)
Test the utility to wrap a given body in a loop nest.
- test_dummy_field_array_typdef_config(rank, suff)
Test the creation of a typedef config for
FIELD_RANKSUFF_ARRAYtypes.