MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
ll_nvptx.cpp File Reference
#include "mim/plug/ll_nvptx/phase/ll_nvptx.h"
#include <format>
#include <mim/driver.h>
#include <mim/util/sys.h>
#include <mim/plug/core/core.h>
#include <mim/plug/gpu/gpu.h>
#include <mim/plug/ll_nvptx/ll_nvptx.h>
#include <mim/plug/mem/mem.h>
Include dependency graph for ll_nvptx.cpp:

Go to the source code of this file.

Classes

class  mim::plug::ll_nvptx::HostEmitter
class  mim::plug::ll_nvptx::DeviceEmitter

Namespaces

namespace  mim
namespace  mim::plug
namespace  mim::plug::ll_nvptx
 The ll_nvptx Plugin

Functions

void mim::plug::ll_nvptx::emit_host (World &, std::ostream &, std::optional< std::string >, ll::Emitter::Rt rt=ll::Emitter::Rt::embed)
DeviceEmitFlags mim::plug::ll_nvptx::emit_device (World &, std::ostream &)

Variables

constexpr auto mim::plug::ll_nvptx::Cu_Init = "cuInit"
constexpr auto mim::plug::ll_nvptx::Cu_Ctx_Create = "cuCtxCreate_v4"
constexpr auto mim::plug::ll_nvptx::Cu_Ctx_Destroy = "cuCtxDestroy_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Device_Get = "cuDeviceGet"
constexpr auto mim::plug::ll_nvptx::Cu_Launch_Kernel = "cuLaunchKernel_ptsz"
constexpr auto mim::plug::ll_nvptx::Cu_Mem_Alloc = "cuMemAlloc_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Mem_Alloc_Async = "cuMemAllocAsync_ptsz"
constexpr auto mim::plug::ll_nvptx::Cu_Mem_Free = "cuMemFree_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Mem_Free_Async = "cuMemFreeAsync_ptsz"
constexpr auto mim::plug::ll_nvptx::Cu_Memcpy_Htod = "cuMemcpyHtoD_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Memcpy_Htod_Async = "cuMemcpyHtoDAsync_v2_ptsz"
constexpr auto mim::plug::ll_nvptx::Cu_Memcpy_Dtoh = "cuMemcpyDtoH_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Memcpy_Dtoh_Async = "cuMemcpyDtoHAsync_v2_ptsz"
constexpr auto mim::plug::ll_nvptx::Cu_Module_Load_Fatbin = "cuModuleLoadFatBinary"
constexpr auto mim::plug::ll_nvptx::Cu_Module_Get_Function = "cuModuleGetFunction"
constexpr auto mim::plug::ll_nvptx::Cu_Module_Unload = "cuModuleUnload"
constexpr auto mim::plug::ll_nvptx::Cu_Stream_Create = "cuStreamCreate"
constexpr auto mim::plug::ll_nvptx::Cu_Stream_Destroy = "cuStreamDestroy_v2"
constexpr auto mim::plug::ll_nvptx::Cu_Stream_Sync = "cuStreamSynchronize_ptsz"