onnxruntime
b2808015 - Skip building custom_op_library if CUDA_MINIMAL is enabled (#27520)

Commit
130 days ago
Skip building custom_op_library if CUDA_MINIMAL is enabled (#27520) ### Description Skip building `custom_op_library` library if CUDA_MINIMAL is enabled ### Motivation and Context https://github.com/microsoft/onnxruntime/pull/27308 removes cudnn include for `custom_op_library` target in cmake if CUDA_MINIMAL is enabled. In fact, the `custom_op_library` target does not define the `USE_CUDA_MINIMAL ` macro (no `target_compile_definitions(custom_op_library PRIVATE -DUSE_CUDA_MINIMAL)` in onnxruntime_unittests.cmake), so one of the files, i.e. cuda_context.h included in cuda_ops.cc still includes cudnn.h and the CI just got lucky to pass becasue cudnn.h is in --cuda_home. If building locally, it might fail to find cudnn.h.
Author
Parents
Loading