简体   繁体   English

如何找到有关 CUDA_ERROR_INVALID_VALUE 的更多详细信息?

[英]How to find more details on CUDA_ERROR_INVALID_VALUE?

As a side question to Use Vulkan VkImage as a CUDA cuArray , how could I get more details on what's wrong on a CUDA Driver API call that returns CUDA_ERROR_INVALID_VALUE ?作为使用 Vulkan VkImage 作为 CUDA cuArray 的一个附带问题,我如何获得有关返回CUDA_ERROR_INVALID_VALUE的 CUDA 驱动程序 API 调用的错误的更多详细信息?

Specifically, the call is to cuExternalMemoryGetMappedMipmappedArray() and the documentation does not list CUDA_ERROR_INVALID_VALUE among its return values.具体来说,调用是对cuExternalMemoryGetMappedMipmappedArray()并且文档没有在其返回值中列出CUDA_ERROR_INVALID_VALUE

Any suggestions on how to go about debugging this issue?有关如何调试此问题的任何建议?

Specifically, the call is to cuExternalMemoryGetMappedMipmappedArray() and the documentation does not list CUDA_ERROR_INVALID_VALUE among its return values.具体来说,调用是对cuExternalMemoryGetMappedMipmappedArray()并且文档没有在其返回值中列出CUDA_ERROR_INVALID_VALUE

That appears to be have been a transient documentation error.这似乎是一个暂时的文档错误。 The current documentation linked in the question (CUDA 11.5 at the time of writing), shows CUDA_ERROR_INVALID_VALUE as an expected return value.问题中链接的当前文档(撰写本文时为 CUDA 11.5)将CUDA_ERROR_INVALID_VALUE显示为预期返回值。

As for the debugging part, the function only has two inputs, the memory object handle, and the array descriptor.至于调试部分,该函数只有两个输入,内存对象句柄和数组描述符。 One of those is invalid.其中之一是无效的。 It should be trivial to debug if you know that the function call is returning the error, and not a prior call.如果您知道函数调用正在返回错误,而不是先前的调用,那么调试应该是微不足道的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM