#ifndef RAIISAFECUDA_STREAM_RELATED_HPP #define RAIISAFECUDA_STREAM_RELATED_HPP #include #include #include namespace safe_cuda { using streamDestroyType = decltype(&cudaStreamDestroy); /** * \brief It tries to create a stream, putting it in a smart pointer with its correct destructor. * \return smart pointer if creation is OK, else the CUDA error */ std::variant, cudaError_t> create_stream() noexcept; } #endif //RAIISAFECUDA_STREAM_RELATED_HPP