Skip to content

/usr/include/cuda_runtime_api.h ==> d: Error: undefined identifier cudaError_t #280

@mw66

Description

@mw66
$ dstep --version
1.0.3-2-g2f6e8ae

$ dstep /usr/include/cuda_runtime_api.h -o cuda_runtime_api.d

# but the generated file cannot be compiled:

source/cuda_runtime_api.d(3625,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(3625,13): Error: undefined identifier `cudaExternalSemaphore_t`
source/cuda_runtime_api.d(3625,13): Error: undefined identifier `cudaExternalSemaphoreSignalParams`
source/cuda_runtime_api.d(3625,13): Error: undefined identifier `cudaStream_t`
source/cuda_runtime_api.d(3701,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(3701,13): Error: undefined identifier `cudaExternalSemaphore_t`
source/cuda_runtime_api.d(3701,13): Error: undefined identifier `cudaExternalSemaphoreWaitParams`
source/cuda_runtime_api.d(3701,13): Error: undefined identifier `cudaStream_t`
source/cuda_runtime_api.d(158,22): Error: undefined identifier `__device__`
source/cuda_runtime_api.d(200,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(221,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(308,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(308,13): Error: undefined identifier `cudaLimit`
source/cuda_runtime_api.d(343,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(343,13): Error: undefined identifier `cudaLimit`
source/cuda_runtime_api.d(365,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(365,13): Error: undefined identifier `cudaChannelFormatDesc`
source/cuda_runtime_api.d(398,13): Error: undefined identifier `cudaError_t`
source/cuda_runtime_api.d(398,13): Error: undefined identifier `cudaFuncCache`
source/cuda_runtime_api.d(435,13): Error: undefined identifier `cudaError_t`

Shall this generated cuda_runtime_api.d be self-contained? or I need to find the .h which defined cudaError_t, and include those files in the D/step build?

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