AMD rocAL - Parameter API

AMD rocAL - Parameter API#

rocAL: API: AMD rocAL - Parameter API
API: AMD rocAL - Parameter API

The AMD rocAL Parameters. More...

Functions

void ROCAL_API_CALL rocalSetSeed (unsigned seed)
 rocalSetSeed More...
 
unsigned ROCAL_API_CALL rocalGetSeed ()
 rocalGetSeed More...
 
RocalIntParam ROCAL_API_CALL rocalCreateIntUniformRand (int start, int end)
 rocalCreateIntUniformRand More...
 
RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand (int start, int end, RocalIntParam updating_obj)
 rocalUpdateIntUniformRand More...
 
int ROCAL_API_CALL rocalGetIntValue (RocalIntParam obj)
 rocalGetIntValue More...
 
float ROCAL_API_CALL rocalGetFloatValue (RocalFloatParam obj)
 rocalGetFloatValue More...
 
RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand (float start, float end)
 rocalCreateFloatUniformRand More...
 
RocalFloatParam ROCAL_API_CALL rocalCreateFloatParameter (float val)
 rocalCreateFloatParameter More...
 
RocalIntParam ROCAL_API_CALL rocalCreateIntParameter (int val)
 rocalCreateIntParameter More...
 
RocalStatus ROCAL_API_CALL rocalUpdateFloatParameter (float new_val, RocalFloatParam input_obj)
 rocalUpdateFloatParameter More...
 
RocalStatus ROCAL_API_CALL rocalUpdateIntParameter (int new_val, RocalIntParam input_obj)
 rocalUpdateIntParameter More...
 
RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand (float start, float end, RocalFloatParam updating_obj)
 rocalUpdateFloatUniformRand More...
 
RocalIntParam ROCAL_API_CALL rocalCreateIntRand (const int *values, const double *frequencies, unsigned size)
 rocalCreateIntRand More...
 
RocalStatus ROCAL_API_CALL rocalUpdateIntRand (const int *values, const double *frequencies, unsigned size, RocalIntParam updating_obj)
 rocalUpdateIntRand More...
 
RocalFloatParam ROCAL_API_CALL rocalCreateFloatRand (const float *values, const double *frequencies, unsigned size)
 Sets the parameters for a new or existing RocalFloatRandGen object. More...
 
RocalStatus ROCAL_API_CALL rocalUpdateFloatRand (const float *values, const double *frequencies, unsigned size, RocalFloatParam updating_obj)
 rocalUpdateFloatRand More...
 

Detailed Description

The AMD rocAL Parameters.

Function Documentation

◆ rocalCreateFloatParameter()

RocalFloatParam ROCAL_API_CALL rocalCreateFloatParameter ( float  val)

rocalCreateFloatParameter

Parameters
val
Returns

◆ rocalCreateFloatRand()

RocalFloatParam ROCAL_API_CALL rocalCreateFloatRand ( const float *  values,
const double *  frequencies,
unsigned  size 
)

Sets the parameters for a new or existing RocalFloatRandGen object.

Parameters
values
frequencies
size
Returns

◆ rocalCreateFloatUniformRand()

RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand ( float  start,
float  end 
)

rocalCreateFloatUniformRand

Parameters
start
end
Returns

◆ rocalCreateIntParameter()

RocalIntParam ROCAL_API_CALL rocalCreateIntParameter ( int  val)

rocalCreateIntParameter

Parameters
val
Returns

◆ rocalCreateIntRand()

RocalIntParam ROCAL_API_CALL rocalCreateIntRand ( const int *  values,
const double *  frequencies,
unsigned  size 
)

rocalCreateIntRand

Parameters
values
frequencies
size
Returns

◆ rocalCreateIntUniformRand()

RocalIntParam ROCAL_API_CALL rocalCreateIntUniformRand ( int  start,
int  end 
)

rocalCreateIntUniformRand

Parameters
start
end
Returns

◆ rocalGetFloatValue()

float ROCAL_API_CALL rocalGetFloatValue ( RocalFloatParam  obj)

rocalGetFloatValue

Parameters
obj
Returns

◆ rocalGetIntValue()

int ROCAL_API_CALL rocalGetIntValue ( RocalIntParam  obj)

rocalGetIntValue

Parameters
obj
Returns

◆ rocalGetSeed()

unsigned ROCAL_API_CALL rocalGetSeed ( )

rocalGetSeed

Returns

◆ rocalSetSeed()

void ROCAL_API_CALL rocalSetSeed ( unsigned  seed)

rocalSetSeed

Parameters
seed

◆ rocalUpdateFloatParameter()

RocalStatus ROCAL_API_CALL rocalUpdateFloatParameter ( float  new_val,
RocalFloatParam  input_obj 
)

rocalUpdateFloatParameter

Parameters
new_val
input_obj
Returns

◆ rocalUpdateFloatRand()

RocalStatus ROCAL_API_CALL rocalUpdateFloatRand ( const float *  values,
const double *  frequencies,
unsigned  size,
RocalFloatParam  updating_obj 
)

rocalUpdateFloatRand

Parameters
values
frequencies
size
updating_obj
Returns

◆ rocalUpdateFloatUniformRand()

RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand ( float  start,
float  end,
RocalFloatParam  updating_obj 
)

rocalUpdateFloatUniformRand

Parameters
start
end
input_obj
Returns

◆ rocalUpdateIntParameter()

RocalStatus ROCAL_API_CALL rocalUpdateIntParameter ( int  new_val,
RocalIntParam  input_obj 
)

rocalUpdateIntParameter

Parameters
new_val
input_obj
Returns

◆ rocalUpdateIntRand()

RocalStatus ROCAL_API_CALL rocalUpdateIntRand ( const int *  values,
const double *  frequencies,
unsigned  size,
RocalIntParam  updating_obj 
)

rocalUpdateIntRand

Parameters
values
frequencies
size
updating_obj
Returns

◆ rocalUpdateIntUniformRand()

RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand ( int  start,
int  end,
RocalIntParam  updating_obj 
)

rocalUpdateIntUniformRand

Parameters
start
end
input_obj
Returns