Skip to content

test_target_mapping_alloc relies on missing declare_target #895

@dreachem

Description

@dreachem

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions