CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
Public Member Functions | Public Attributes | List of all members
CLRX::AmdInput Struct Reference

main Input for AmdGPUBinGenerator More...

#include <AmdBinGen.h>

Public Member Functions

void addKernel (const AmdKernelInput &kernelInput)
 add kernel to input
 
void addKernel (AmdKernelInput &&kernelInput)
 add kernel to input
 
void addKernel (const char *kernelName, size_t codeSize, const cxbyte *code, const AmdKernelConfig &config, size_t dataSize=0, const cxbyte *data=nullptr)
 add kernel to input with configuration More...
 
void addKernel (const char *kernelName, size_t codeSize, const cxbyte *code, const std::vector< CALNoteInput > &calNotes, const cxbyte *header, size_t metadataSize, const char *metadata, size_t dataSize=0, const cxbyte *data=nullptr)
 add kernel to input More...
 
void addEmptyKernel (const char *kernelName)
 add empty kernel with default values (even for configuration)
 

Public Attributes

bool is64Bit
 is 64-bit binary
 
GPUDeviceType deviceType
 GPU device type.
 
size_t globalDataSize
 global constant data size
 
const cxbyteglobalData
 global constant data
 
uint32_t driverVersion
 driver version (majorVersion*100 + minorVersion)
 
CString compileOptions
 compile options
 
CString driverInfo
 driver info
 
std::vector< AmdKernelInputkernels
 kernels
 
std::vector< BinSectionextraSections
 extra sections
 
std::vector< BinSymbolextraSymbols
 extra symbols
 

Detailed Description

main Input for AmdGPUBinGenerator

Member Function Documentation

void CLRX::AmdInput::addKernel ( const char *  kernelName,
size_t  codeSize,
const cxbyte code,
const AmdKernelConfig config,
size_t  dataSize = 0,
const cxbyte data = nullptr 
)

add kernel to input with configuration

Parameters
kernelNamekernel name
codeSizesize of kernel code size
codekernel code
configkernel configuration
dataSizesize of data in .data section
datacontent of .data section
void CLRX::AmdInput::addKernel ( const char *  kernelName,
size_t  codeSize,
const cxbyte code,
const std::vector< CALNoteInput > &  calNotes,
const cxbyte header,
size_t  metadataSize,
const char *  metadata,
size_t  dataSize = 0,
const cxbyte data = nullptr 
)

add kernel to input

Parameters
kernelNamekernel name
codeSizesize of kernel code size
codekernel code
calNoteslist of ATI CAL notes
headerkernel header (32-bytes)
metadataSizesize of metadata text in bytes
metadatametadata text (not null-terminated)
dataSizesize of data in .data section
datacontent of .data section

The documentation for this struct was generated from the following file: