You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building with nix, I ran into errors while linking because the linker was unable to find -lcudnn_frontend.
My understanding was that cudnn-frontend was a header-only library (https://github.com/NVIDIA/cudnn-frontend) -- why does onnxruntime try to link against a library?
cudnn_frontend is an interface library. Need use target_link_libraries() in CMake. Interface libraries in CMake are special in that they do not generate any compiled output themselves but propagate build properties, such as include directories or other linked libraries, to targets that depend on them.
cudnn_frontend is a cmake target. It's ok to do so, because the target_link_libraries command will add extra compile flags for the target. In this case, for example, CUDNN_FRONTEND_SKIP_JSON_LIB. But, we may also change it to onnxruntime_add_include_to_target.
Describe the issue
I'm packaging
onnxruntime
for the Nixpkgs CUDA ecosystem (https://github.com/connorbaker/cuda-packages).When building with
nix
, I ran into errors while linking because the linker was unable to find-lcudnn_frontend
.My understanding was that
cudnn-frontend
was a header-only library (https://github.com/NVIDIA/cudnn-frontend) -- why doesonnxruntime
try to link against a library?onnxruntime/cmake/onnxruntime_unittests.cmake
Line 70 in ac9c135
onnxruntime/cmake/onnxruntime_providers_cuda.cmake
Line 208 in ac9c135
Urgency
No response
Target platform
x86_64-linux with TensorRT
Build script
nix build -L --builders '' --no-link github:connorbaker/cuda-packages/fabe15378f8cf5a0870d6189115170a042a802f5#pkgsCuda.sm_89.cudaPackages_12.onnxruntime
Error / output
Visual Studio Version
No response
GCC / Compiler Version
13.3.0
The text was updated successfully, but these errors were encountered: