ContextSupportsCuda#

Fully qualified name: cupva::cuda::ContextSupportsCuda

Defined in src/host/cpp_api/include/cupva_host_cuda.hpp

bool cupva::cuda::ContextSupportsCuda(
cupva::impl::Context const *const ctx = cupva::Context::GetCurrent(),
) noexcept#

Check if CUDA interop is enabled.

Returns whether the current process has disabled CUDA using ForceDisableSupport().

Usage considerations

  • Allowed context for the API call

    • Thread-safe: No

  • API group

    • Init: No

    • Runtime: Yes

    • De-Init: No

Parameters:

ctx[in] pointer to a cupva::impl::Context handle. This parameter is deprecated and will be ignored.

Returns:

true if CUDA has not been disabled for the current process, false otherwise.