OpenMP_VV
OpenMP_VV copied to clipboard
Bug? test_target_data_if -- validation criteria maybe incorrect
Describe the bug I believe there is a bug in 4.5/target_data/test_target_data_if.F90
Here is the criteria for the first part of the test ( tests_target_data_if_simple()
):
https://github.com/SOLLVE/sollve_vv/blob/master/tests/4.5/target_data/test_target_data_if.F90#L88-L89
but it looks like it should be:
+ IF ( s > THRESHOLD .AND. isOffloading) THEN
which would make it symmetrical to the second part of the test (tests_target_data_if_nested()
):
https://github.com/SOLLVE/sollve_vv/blob/master/tests/4.5/target_data/test_target_data_if.F90#L168
In our own internal testing, the test passes when the target is the Gen9,
-fiopenmp -fopenmp-targets=spir64
but fails if the target is the host:
-fiopenmp -fopenmp-targets=x86_64
Test that it applies to 4.5/target_data/test_target_data_if.F90
To Reproduce
Gen9 test
ifx -o test_target_data_if.x -c -fiopenmp -fopenmp-targets=spir64 test_target_data_if.F90
works
Host test
ifx -o test_target_data_if.x -c -fiopenmp -fopenmp-targets=x86_64 test_target_data_if.F90
fails
Expected behavior I would have expected this test to pass if the target is the host --- but was it actually designed to work in this manner?
Compiler Intel Fortran Compiler
Accelerator hardware Intel Gen9 GPU