NVIDIACUDA Toolkit Documentation
Search In:

Search Results

    < Previous | Next >
    CUDA Runtime API (PDF) - v12.1.0 (older) - Last updated February 28, 2023 - Send Feedback

    7.35. cudaMemLocation Struct Reference

    [Data types used by CUDA Runtime]

    Specifies a memory location.

    To specify a gpu, set type = cudaMemLocationTypeDevice and set id = the gpu's device ordinal.

    Public Variables

    int  id
    enumcudaMemLocationType type

    Variables

    int cudaMemLocation::id [inherited]

    identifier for a given this location's CUmemLocationType.

    enumcudaMemLocationTypecudaMemLocation::type [inherited]

    Specifies the location type, which modifies the meaning of id.