Custom Op Library does not work for CUDA #21417
Labels
ep:CUDA
issues related to the CUDA execution provider
platform:windows
issues related to the Windows platform
Describe the issue
I built onnxruntime v1.18 (cuda build) for Windows from source and among the generated dll files there is custom_op_library.dll. I wanted to test if the operator CustomOpOne for which there exists a CUDA defintion works when I use the CUDA execution provider. I made sure to call the RegisterCustomOpsLibrary to add my dll to the session_options. The error I obtain is that the return code is different than 0 (which is no the case when I use the CPU execution provider). I try to catch an exception but I failed.
To reproduce
This is the link to the onnx model I used https://mega.nz/file/kNsyWDKa#aEr8vsuh5olCpWn021w0eTsk5o1F3X0uhTs8QZXl4q8
The following is the code to reproduce the error
Urgency
This issue is stopping from developping custom operators that can be executed using CUDA execution provider
Platform
Windows
OS Version
10
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.18.0
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
12.3
The text was updated successfully, but these errors were encountered: