MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::plug::nvptx Namespace Reference

The nvptx Plugin More...

Classes

struct  DeviceEmitFlags
class  DeviceEmitter
class  Emit
class  HostEmitter

Enumerations

<tt>nvptx.emit</tt>
enum class  emit : flags_t

Functions

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

Variables

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

Detailed Description


Class Documentation

◆ mim::plug::nvptx::DeviceEmitFlags

struct mim::plug::nvptx::DeviceEmitFlags

Definition at line 19 of file nvptx.h.

Class Members
bool uses_libdevice

Enumeration Type Documentation

◆ emit

enum class mim::plug::nvptx::emit : flags_t
strong

Definition at line 14 of file autogen.h.

Function Documentation

◆ emit_device()

DeviceEmitFlags mim::plug::nvptx::emit_device ( World & world,
std::ostream & ostream )

◆ emit_host()

void mim::plug::nvptx::emit_host ( World & world,
std::ostream & ostream,
std::optional< std::string > device_fatbin_file,
ll::Emitter::Rt rt = ll::Emitter::Rt::embed )

Variable Documentation

◆ Cu_Ctx_Create

auto mim::plug::nvptx::Cu_Ctx_Create = "cuCtxCreate_v4"
constexpr

Definition at line 160 of file nvptx.cpp.

◆ Cu_Ctx_Destroy

auto mim::plug::nvptx::Cu_Ctx_Destroy = "cuCtxDestroy_v2"
constexpr

Definition at line 161 of file nvptx.cpp.

◆ Cu_Device_Get

auto mim::plug::nvptx::Cu_Device_Get = "cuDeviceGet"
constexpr

Definition at line 162 of file nvptx.cpp.

◆ Cu_Init

auto mim::plug::nvptx::Cu_Init = "cuInit"
constexpr

Definition at line 159 of file nvptx.cpp.

◆ Cu_Launch_Kernel

auto mim::plug::nvptx::Cu_Launch_Kernel = "cuLaunchKernel_ptsz"
constexpr

◆ Cu_Mem_Alloc

auto mim::plug::nvptx::Cu_Mem_Alloc = "cuMemAlloc_v2"
constexpr

◆ Cu_Mem_Alloc_Async

auto mim::plug::nvptx::Cu_Mem_Alloc_Async = "cuMemAllocAsync_ptsz"
constexpr

◆ Cu_Mem_Free

auto mim::plug::nvptx::Cu_Mem_Free = "cuMemFree_v2"
constexpr

◆ Cu_Mem_Free_Async

auto mim::plug::nvptx::Cu_Mem_Free_Async = "cuMemFreeAsync_ptsz"
constexpr

◆ Cu_Memcpy_Dtoh

auto mim::plug::nvptx::Cu_Memcpy_Dtoh = "cuMemcpyDtoH_v2"
constexpr

◆ Cu_Memcpy_Dtoh_Async

auto mim::plug::nvptx::Cu_Memcpy_Dtoh_Async = "cuMemcpyDtoHAsync_v2_ptsz"
constexpr

◆ Cu_Memcpy_Htod

auto mim::plug::nvptx::Cu_Memcpy_Htod = "cuMemcpyHtoD_v2"
constexpr

◆ Cu_Memcpy_Htod_Async

auto mim::plug::nvptx::Cu_Memcpy_Htod_Async = "cuMemcpyHtoDAsync_v2_ptsz"
constexpr

◆ Cu_Module_Get_Function

auto mim::plug::nvptx::Cu_Module_Get_Function = "cuModuleGetFunction"
constexpr

Definition at line 173 of file nvptx.cpp.

◆ Cu_Module_Load_Fatbin

auto mim::plug::nvptx::Cu_Module_Load_Fatbin = "cuModuleLoadFatBinary"
constexpr

Definition at line 172 of file nvptx.cpp.

◆ Cu_Module_Unload

auto mim::plug::nvptx::Cu_Module_Unload = "cuModuleUnload"
constexpr

Definition at line 174 of file nvptx.cpp.

◆ Cu_Stream_Create

auto mim::plug::nvptx::Cu_Stream_Create = "cuStreamCreate"
constexpr

◆ Cu_Stream_Destroy

auto mim::plug::nvptx::Cu_Stream_Destroy = "cuStreamDestroy_v2"
constexpr

◆ Cu_Stream_Sync

auto mim::plug::nvptx::Cu_Stream_Sync = "cuStreamSynchronize_ptsz"
constexpr

◆ Plugin_Id

plugin_t mim::plug::nvptx::Plugin_Id = 0x3d74556400000000
staticconstexpr

Definition at line 10 of file autogen.h.