英文:
reading CUDA buffer in directx12
问题
after creating a GPU buffer in CUDA then exporting it using cuMemExportToShareableHandle()
and getting a HANDLE
then using the CUDA HANDLE
as input in ID3D12Device::OpenSharedHandle()
then fails with Access violation writing location
(A) OpenSharedHandle()
可以打开CUDA句柄吗或
(B) OpenSharedHandle()
只能打开由CreateSharedHandle()
创建的句柄
如果是(A),那么我的句柄可能有问题
如果是(B),那么是否有另一种方法将CUDA句柄导入DirectX12?
英文:
after creating a GPU buffer in CUDA then exporting it using cuMemExportToShareableHandle()
and getting a HANDLE
then using the CUDA HANDLE
as input in ID3D12Device::OpenSharedHandle()
then fails with Access violation writing location
can
(A)OpenSharedHandle()
open CUDA handles or
(B)OpenSharedHandle()
only opens handles created by CreateSharedHandle()
if it's (A) then there is something wrong with my handle
if it's (B) then is there another way to import the CUDA handle into directx12?
答案1
得分: 1
"OpenSharedHandle()"只能打开DirectX句柄,但由DirectX 12创建的句柄可以被CUDA的"cuMemImportFromShareableHandle()"打开。
英文:
I asked on the official directx discord
OpenSharedHandle()
can only open directx handles
but a handle created by directx12 CreateSharedHandle()
can be open by CUDA cuMemImportFromShareableHandle()
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论