Skip to content

File graph_instantiate_flag.h

File List > graph > graph_instantiate_flag.h

Go to the documentation of this file

#pragma once
#include <cuda.h>
#include <muda/tools/version.h>
namespace muda
{
enum class GraphInstantiateFlagBit
{
    FreeOnLaunch = CUgraphInstantiate_flags::CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH,
#if MUDA_WITH_DEVICE_STREAM_MODEL
    Upload = CUgraphInstantiate_flags::CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD,
    DeviceLaunch = CUgraphInstantiate_flags::CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH,
    UseNodePriority = CUgraphInstantiate_flags::CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY,
#else
    Upload          = 2,
    DeviceLaunch    = 4,
    UseNodePriority = 8,
#endif
};
}  // namespace muda