MLIR  21.0.0git
Classes | Macros | Functions
VulkanRuntimeWrappers.cpp File Reference
#include <iostream>
#include <mutex>
#include <numeric>
#include <string>
#include <vector>
#include "VulkanRuntime.h"

Go to the source code of this file.

Classes

struct  MemRefDescriptor< T, N >
 

Macros

#define VULKAN_WRAPPER_SYMBOL_EXPORT   __attribute__((visibility("default")))
 

Functions

VULKAN_WRAPPER_SYMBOL_EXPORT void * mgpuStreamCreate ()
 
VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuStreamDestroy (void *vkRuntimeManager)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuStreamSynchronize (void *)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void * mgpuModuleLoad (const void *data, size_t gpuBlobSize)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuModuleUnload (void *vkModule)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void * mgpuModuleGetFunction (void *vkModule, const char *name)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuLaunchKernel (void *vkKernel, size_t gridX, size_t gridY, size_t gridZ, size_t, size_t, size_t, size_t, void *vkRuntimeManager, void **params, void **, size_t paramsCount)
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DFloat (MemRefDescriptor< float, 1 > *ptr, float value)
 Fills the given 1D float memref with the given float value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DFloat (MemRefDescriptor< float, 2 > *ptr, float value)
 Fills the given 2D float memref with the given float value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DFloat (MemRefDescriptor< float, 3 > *ptr, float value)
 Fills the given 3D float memref with the given float value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DInt (MemRefDescriptor< int32_t, 1 > *ptr, int32_t value)
 Fills the given 1D int memref with the given int value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DInt (MemRefDescriptor< int32_t, 2 > *ptr, int32_t value)
 Fills the given 2D int memref with the given int value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DInt (MemRefDescriptor< int32_t, 3 > *ptr, int32_t value)
 Fills the given 3D int memref with the given int value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DInt8 (MemRefDescriptor< int8_t, 1 > *ptr, int8_t value)
 Fills the given 1D int memref with the given int8 value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DInt8 (MemRefDescriptor< int8_t, 2 > *ptr, int8_t value)
 Fills the given 2D int memref with the given int8 value. More...
 
VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DInt8 (MemRefDescriptor< int8_t, 3 > *ptr, int8_t value)
 Fills the given 3D int memref with the given int8 value. More...
 

Macro Definition Documentation

◆ VULKAN_WRAPPER_SYMBOL_EXPORT

#define VULKAN_WRAPPER_SYMBOL_EXPORT   __attribute__((visibility("default")))

Definition at line 26 of file VulkanRuntimeWrappers.cpp.

Function Documentation

◆ _mlir_ciface_fillResource1DFloat()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DFloat ( MemRefDescriptor< float, 1 > *  ptr,
float  value 
)

Fills the given 1D float memref with the given float value.

Definition at line 201 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource1DInt()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DInt ( MemRefDescriptor< int32_t, 1 > *  ptr,
int32_t  value 
)

Fills the given 1D int memref with the given int value.

Definition at line 223 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource1DInt8()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource1DInt8 ( MemRefDescriptor< int8_t, 1 > *  ptr,
int8_t  value 
)

Fills the given 1D int memref with the given int8 value.

Definition at line 245 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource2DFloat()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DFloat ( MemRefDescriptor< float, 2 > *  ptr,
float  value 
)

Fills the given 2D float memref with the given float value.

Definition at line 208 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource2DInt()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DInt ( MemRefDescriptor< int32_t, 2 > *  ptr,
int32_t  value 
)

Fills the given 2D int memref with the given int value.

Definition at line 230 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource2DInt8()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource2DInt8 ( MemRefDescriptor< int8_t, 2 > *  ptr,
int8_t  value 
)

Fills the given 2D int memref with the given int8 value.

Definition at line 252 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource3DFloat()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DFloat ( MemRefDescriptor< float, 3 > *  ptr,
float  value 
)

Fills the given 3D float memref with the given float value.

Definition at line 215 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource3DInt()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DInt ( MemRefDescriptor< int32_t, 3 > *  ptr,
int32_t  value 
)

Fills the given 3D int memref with the given int value.

Definition at line 237 of file VulkanRuntimeWrappers.cpp.

◆ _mlir_ciface_fillResource3DInt8()

VULKAN_WRAPPER_SYMBOL_EXPORT void _mlir_ciface_fillResource3DInt8 ( MemRefDescriptor< int8_t, 3 > *  ptr,
int8_t  value 
)

Fills the given 3D int memref with the given int8 value.

Definition at line 259 of file VulkanRuntimeWrappers.cpp.

◆ mgpuLaunchKernel()

VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuLaunchKernel ( void *  vkKernel,
size_t  gridX,
size_t  gridY,
size_t  gridZ,
size_t  ,
size_t  ,
size_t  ,
size_t  ,
void *  vkRuntimeManager,
void **  params,
void **  ,
size_t  paramsCount 
)

Definition at line 155 of file VulkanRuntimeWrappers.cpp.

◆ mgpuModuleGetFunction()

VULKAN_WRAPPER_SYMBOL_EXPORT void* mgpuModuleGetFunction ( void *  vkModule,
const char *  name 
)

Definition at line 147 of file VulkanRuntimeWrappers.cpp.

◆ mgpuModuleLoad()

VULKAN_WRAPPER_SYMBOL_EXPORT void* mgpuModuleLoad ( const void *  data,
size_t  gpuBlobSize 
)

Definition at line 137 of file VulkanRuntimeWrappers.cpp.

◆ mgpuModuleUnload()

VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuModuleUnload ( void *  vkModule)

Definition at line 143 of file VulkanRuntimeWrappers.cpp.

◆ mgpuStreamCreate()

VULKAN_WRAPPER_SYMBOL_EXPORT void* mgpuStreamCreate ( )

Definition at line 125 of file VulkanRuntimeWrappers.cpp.

◆ mgpuStreamDestroy()

VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuStreamDestroy ( void *  vkRuntimeManager)

Definition at line 129 of file VulkanRuntimeWrappers.cpp.

◆ mgpuStreamSynchronize()

VULKAN_WRAPPER_SYMBOL_EXPORT void mgpuStreamSynchronize ( void *  )

Definition at line 133 of file VulkanRuntimeWrappers.cpp.