Feature request: configure option for CUDA support
As far as I understand, the CUDA support gets enabled/disabled automatically based on the results of several configure-time checks. It would be nice to have a configure option to control that:
- option enabled => the feature is enabled and the configure script fails if the feature cannot be enabled;
- option disabled => the feature is disabled and the configure script does not run the extra configure-time checks;
- (optionally) option not specified => enable the feature if possible and disable otherwise.
I'd prefer that over playing with the ac_cv_header_cuda_h
cache variable.
When devising a name/interface for the option, it might make sense to keep in mind that there might be a request to support AMD ROCm
platform in a similar way in the future.
P.S. Is the spelling iff
here and in several other places intended or a copy/paste typo?