Skip to content

Explicitly set device to use #23

Description

@gsitaram

In gpu/plmem.cu:426, we expect device 0 to be where the app is running:

cudaGetDeviceProperties(&device_prop, 0);

Instead of assuming, let's add a cudaSetDevice(0) at the beginning of the app so that we explicitly initialize the runtime with this information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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