Describe the bug
The test test_target_mapping_alloc calls test_and_set_verbose in a target construct via the macro OMPVV_TEST_AND_SET_VERBOSE, defined in ompvv.F90. However, the declaration/definition of that procedure does not have a declare_target directive to ensure that compiler generates a device version of it that is callable on a non-host device.
Test that it applies to
Applies to the test_target_mapping_alloc test.
To Reproduce
Failure reproduced when trying to compile this test with CCE. 6.1 will say that support for this is implementation defined. It's not guaranteed to work.
Expected behavior
I expect the test, as written, to potentially not compile or result in a linker error.
Compiler
CCE 20.
Accelerator hardware
Any non-host accelerator will trigger the compile-time error for CCE.
@spophale
Describe the bug
The test
test_target_mapping_alloccallstest_and_set_verbosein a target construct via the macroOMPVV_TEST_AND_SET_VERBOSE, defined inompvv.F90. However, the declaration/definition of that procedure does not have a declare_target directive to ensure that compiler generates a device version of it that is callable on a non-host device.Test that it applies to
Applies to the
test_target_mapping_alloctest.To Reproduce
Failure reproduced when trying to compile this test with CCE. 6.1 will say that support for this is implementation defined. It's not guaranteed to work.
Expected behavior
I expect the test, as written, to potentially not compile or result in a linker error.
Compiler
CCE 20.
Accelerator hardware
Any non-host accelerator will trigger the compile-time error for CCE.
@spophale