Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documentation inconsistent about preprocessor macros identifying AMD or NVIDIA platform #3199

@Noerr

Description

@Noerr

HIP_PLATFORM_AMD or __HIP_PLATFORM_AMD__ ?
HIP_PLATFORM_NVIDIA or __HIP_PLATFORM_NVIDIA__ ?

The paragraph Identifying HIP Target Platform should be more explicit in use of "is defined".

If talking about a preprocessor macro definition, then these names without double underscore are inconsistent with the following paragraph.

If talking about an environment variable set, then say "is defined in the environment". ( I suspect this is not the case, what would define such a variable )

This HIP FAQ by AMD suggests the right macro is no double underscores.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions