Skip to content

map type must be specified for '#pragma omp target enter data' #36

@jinz2014

Description

@jinz2014

Building the program target_ptr_map.3b.c shows the following error:

amdclang++
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
target_ptr_map.3b.c:22:33: error: map type must be specified for '#pragma omp target enter data'
22 | #pragma omp target enter data map(y[:N])

nvc
NVC++-S-1205-OpenMP GPU - 'target enter data' is used with map-type 'tofrom' that is other than 'to', or 'alloc' (target_ptr_map.3b.c: 25)
NVC++/x86-64 Linux 25.7-0: compilation completed with severe errors

Metadata

Metadata

Assignees

No one assigned

    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