Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

missmatch in enum error values #62

@LuisAyuso

Description

@LuisAyuso

Hi there,

I am running a program which contains some error, and the Cuda runtime keeps returning
MissingConfiguration

I can see in the cuda_sys code that this enum value maps to 2, nevertheless
MissingConfiguration in the Cuda runtime maps to 52, while 2 is

    /**
     * The API call failed because it was unable to allocate enough memory to
     * perform the requested operation.
     */
    cudaErrorMemoryAllocation             =      2,
    /**
     * The device function being invoked (usually via ::cudaLaunchKernel()) was not
     * previously configured via the ::cudaConfigureCall() function.
     */
    cudaErrorMissingConfiguration         =      52

In the rust code there are no 52 nor 53 values:

    PeerAccessAlreadyEnabled = 50,
    PeerAccessNotEnabled = 51,
    DeviceAlreadyInUse = 54,
    ProfilerDisabled = 55,

I am using cuda 10.1.

  • is this version supported?
  • is this a version missmatch?
  • Should I generate the bindings myself from the Cuda header?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions