Proteus
Programmable JIT compilation and optimization for C/C++ using LLVM
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
HIPRuntimeAPI.cpp File Reference
#include "proteus/impl/HIPRuntimeAPI.h"
#include "proteus/Error.h"
#include <dlfcn.h>
#include <mutex>
#include <string>
Include dependency graph for HIPRuntimeAPI.cpp:

Namespaces

namespace  proteus
 
namespace  proteus::hipdyn
 

Macros

#define PROTEUS_HIP_RUNTIME_LIBRARY_SONAME   "libamdhip64.so"
 
#define PROTEUS_HIPRTC_LIBRARY_SONAME   "libhiprtc.so"
 
#define PROTEUS_HIP_INSTALL_ROOT   ""
 
#define PROTEUS_STRINGIFY_IMPL(X)   #X
 
#define PROTEUS_STRINGIFY(X)   PROTEUS_STRINGIFY_IMPL(X)
 

Functions

const char * proteus::hipdyn::getErrorString (hipError_t Error)
 
hipError_t proteus::hipdyn::getDeviceProperties (hipDeviceProp_t *Prop, int DeviceId)
 
hipError_t proteus::hipdyn::getSymbolAddress (void **DevPtr, const void *Symbol)
 
hipError_t proteus::hipdyn::memcpyHtoD (hipDeviceptr_t Dst, const void *Src, size_t SizeBytes)
 
hipError_t proteus::hipdyn::moduleLoadData (hipModule_t *Module, const void *Image)
 
hipError_t proteus::hipdyn::moduleGetGlobal (hipDeviceptr_t *Dptr, size_t *Bytes, hipModule_t Module, const char *Name)
 
hipError_t proteus::hipdyn::moduleGetFunction (hipFunction_t *Function, hipModule_t Module, const char *Name)
 
hipError_t proteus::hipdyn::moduleLaunchKernel (hipFunction_t Function, unsigned int GridDimX, unsigned int GridDimY, unsigned int GridDimZ, unsigned int BlockDimX, unsigned int BlockDimY, unsigned int BlockDimZ, unsigned int SharedMemBytes, hipStream_t Stream, void **KernelParams, void **Extra)
 
hipError_t proteus::hipdyn::launchKernel (const void *FunctionAddress, dim3 NumBlocks, dim3 DimBlocks, void **Args, size_t SharedMemBytes, hipStream_t Stream)
 
hipError_t proteus::hipdyn::funcSetAttribute (const void *Function, hipFuncAttribute Attribute, int Value)
 
const char * proteus::hipdyn::getRTCErrorString (hiprtcResult Result)
 
hiprtcResult proteus::hipdyn::rtcLinkCreate (unsigned int NumOptions, hiprtcJIT_option *Options, void **OptionValues, hiprtcLinkState *LinkStateOut)
 
hiprtcResult proteus::hipdyn::rtcLinkAddData (hiprtcLinkState LinkState, hiprtcJITInputType InputType, void *Image, size_t ImageSize, const char *Name, unsigned int NumOptions, hiprtcJIT_option *Options, void **OptionValues)
 
hiprtcResult proteus::hipdyn::rtcLinkComplete (hiprtcLinkState LinkState, void **BinOut, size_t *SizeOut)
 

Macro Definition Documentation

◆ PROTEUS_HIP_INSTALL_ROOT

#define PROTEUS_HIP_INSTALL_ROOT   ""

◆ PROTEUS_HIP_RUNTIME_LIBRARY_SONAME

#define PROTEUS_HIP_RUNTIME_LIBRARY_SONAME   "libamdhip64.so"

◆ PROTEUS_HIPRTC_LIBRARY_SONAME

#define PROTEUS_HIPRTC_LIBRARY_SONAME   "libhiprtc.so"

◆ PROTEUS_STRINGIFY

#define PROTEUS_STRINGIFY (   X)    PROTEUS_STRINGIFY_IMPL(X)

◆ PROTEUS_STRINGIFY_IMPL

#define PROTEUS_STRINGIFY_IMPL (   X)    #X