Skip to content

Tests for Fortran runtime routines do not match spec #89

@alisterj1138

Description

@alisterj1138

The Fortran tests for acc_deviceptr, acc_hostptr, acc_malloc, acc_free, acc_map_data, and acc_unmap_data do not match these routines' descriptions in the spec.

For example, for acc_deviceptr, v3.3 of the spec gives this as the format:

4110 Fortran:
4111 type(c_ptr) function acc_deviceptr(data_arg)
4112 type(*),dimension(*) :: data_arg

While the test seems to be expecting a Fortran pointer, not a c_ptr:

REAL(8), DIMENSION(LOOPCOUNT) :: a, b, c  !Data
REAL(8), POINTER, DIMENSION(:) :: a_ptr, b_ptr, d_ptr

[...]

        a_ptr = acc_deviceptr(a)
        b_ptr = acc_deviceptr(b)
        d_ptr = acc_deviceptr(c)

These tests all likely need to be updated, though it's not always clear (particularly for acc_deviceptr) how to update them while preserving the semantics of the test.

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