#include "assert.h" #include "nvbit-sys/nvbit/utils_bridge.h" #include "nvbit-sys/src/utils.rs.h" std::unique_ptr new_managed_dev_channel() { return std::make_unique(); } std::unique_ptr new_dev_channel() { return std::make_unique(); } std::unique_ptr new_host_channel(int id, int buff_size, ChannelDev *ch_dev) { auto host_channel = std::make_unique(); assert(cudaGetLastError() == cudaSuccess); host_channel->init(id, buff_size, ch_dev, NULL); assert(cudaGetLastError() == cudaSuccess); return host_channel; }