ae2f_docs
Slp.core.h File Reference
#include <ae2f/Cast.h>
#include <ae2f/errGlob.h>
#include <vulkan/vulkan.h>
#include <ae2f/Ann/Slp.h>
#include <vulkan/vulkan_core.h>
#include <ae2f/Cmp.h>
#include <limits.h>
#include <ae2f/Float.h>
#include <clspv/Compiler.h>
#include <ae2f/Pack/Beg.h>
#include <ae2f/Pack/End.h>

Go to the source code of this file.

Macros

#define clspv_restrict   restrict
#define __ae2fVK_AnnSlpWeightSz(i_inp, i_out)
#define __ae2fVK_AnnSlpBiasSz(i_inp, i_out)
#define __ae2fVK_AnnSlpInpSz(i_inp, ...)
#define __ae2fVK_AnnSlpOutSz(i_inp, i_out)
#define __ae2fVK_AnnSlpDeltaSz(i_inp, i_out)
#define __ae2fVK_AnnSlpGoalSz(i_inp, i_out)
#define __ae2fVK_AnnSlpWeightOff(i_inp, i_out)
#define __ae2fVK_AnnSlpBiasOff(i_inp, i_out)
#define __ae2fVK_AnnSlpInpOff(i_inp, i_out)
#define __ae2fVK_AnnSlpOutOff(i_inp, i_out)
#define __ae2fVK_AnnSlpDeltaOff(i_inp, i_out)
#define __ae2fVK_AnnSlpGoalOff(i_inp, i_out)
#define __ae2fVK_AnnSlpGlobSz(i_inp, i_out)

Typedefs

typedef enum ae2fVK_eAnnSlpPipes ae2fVK_eAnnSlpPipes
typedef enum ae2fVK_eAnnSlpDescPools ae2fVK_eAnnSlpDescPools
typedef enum ae2fVK_eAnnSlpPipeLayouts ae2fVK_eAnnSlpPipeLayouts
typedef enum ae2fVK_eAnnSlpDescLayouts ae2fVK_eAnnSlpDescLayouts
typedef char STATIC_ASSERT_ae2fVK_AnnSlpMkU2_vkdescsetlayoutbind_sz[sizeof(ae2fVK_AnnSlpMkU2S0_t)==sizeof(VkDescriptorSetLayoutBinding) *2 ? 1 :-1]
typedef VkMappedMemoryRange ae2fVK_AnnSlpUnMap_t
typedef VkMappedMemoryRange ae2fVK_AnnSlpMapRangedGeneric_t

Enumerations

enum  ae2fVK_eAnnSlpPipes {
  ae2fVK_eAnnSlpPipes_kPredict , ae2fVK_eAnnSlpPipes_kFollow , ae2fVK_eAnnSlpPipes_kTrain , ae2fVK_eAnnSlpPipes_kFit ,
  ae2fVK_eAnnSlpPipes_LEN
}
enum  ae2fVK_eAnnSlpDescPools { ae2fVK_eAnnSlpDescPools_kPredict , ae2fVK_eAnnSlpDescPools_kTrain , ae2fVK_eAnnSlpDescPools_LEN }
enum  ae2fVK_eAnnSlpPipeLayouts { ae2fVK_eAnnSlpPipeLayouts_kPredict , ae2fVK_eAnnSlpPipeLayouts_kTrain , ae2fVK_eAnnSlpPipeLayouts_kFit , ae2fVK_eAnnSlpPipeLayouts_LEN }
enum  ae2fVK_eAnnSlpDescLayouts { ae2fVK_eAnnSlpDescLayouts_kPredict , ae2fVK_eAnnSlpDescLayouts_kTrain , ae2fVK_eAnnSlpDescLayouts_LEN }

Functions

 ae2f_structdef (struct, ae2fVK_AnnSlp)
 Vulkan memory layout [WeightBuffer] [BiasBuffer] [DeltaCacheBuffer].
 ae2f_structdef (struct, ae2fVK_AnnSlpMkAlter_t)
 ae2f_structdef (union, ae2fVK_AnnSlpMkU0_t)
 ae2f_structdef (union, ae2fVK_AnnSlpMkU1_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpMkU2S0_t)
 ae2f_structdef (union, ae2fVK_AnnSlpMkU2_t)
 ae2f_structdef (union, ae2fVK_AnnSlpMkU3_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpMk_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpPredictUnion0WrDescInfo_t)
 ae2f_structdef (union, ae2fVK_AnnSlpPredictUnion0_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpDescPoolCmdMk_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpCreatDescPoolU0_t)
 ae2f_structdef (struct, ae2fVK_AnnSlpCreatDescPool_t)

Macro Definition Documentation

◆ __ae2fVK_AnnSlpBiasOff

#define __ae2fVK_AnnSlpBiasOff ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpWeightSz(i_inp, i_out)
Definition Slp.core.h:167
#define __ae2fVK_AnnSlpWeightOff(i_inp, i_out)
Definition Slp.core.h:174
ae2f_float_t *const const size_t const size_t const size_t ae2f_AnnAct_t const ae2f_float_t *const i_inp
Definition Mlp.h:37

Definition at line 175 of file Slp.core.h.

◆ __ae2fVK_AnnSlpBiasSz

#define __ae2fVK_AnnSlpBiasSz ( i_inp,
i_out )
Value:
(sizeof(ae2f_float_t) * (i_out))
ae2f_float ae2f_float_t
Definition Float.h:38

Definition at line 168 of file Slp.core.h.

◆ __ae2fVK_AnnSlpDeltaOff

#define __ae2fVK_AnnSlpDeltaOff ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpOutOff(i_inp, i_out)
Definition Slp.core.h:177
#define __ae2fVK_AnnSlpOutSz(i_inp, i_out)
Definition Slp.core.h:170

Definition at line 178 of file Slp.core.h.

◆ __ae2fVK_AnnSlpDeltaSz

#define __ae2fVK_AnnSlpDeltaSz ( i_inp,
i_out )
Value:
(sizeof(ae2f_float_t) * (i_out))

Definition at line 171 of file Slp.core.h.

◆ __ae2fVK_AnnSlpGlobSz

#define __ae2fVK_AnnSlpGlobSz ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpGoalSz(i_inp, i_out)
Definition Slp.core.h:172
#define __ae2fVK_AnnSlpGoalOff(i_inp, i_out)
Definition Slp.core.h:179

Definition at line 181 of file Slp.core.h.

◆ __ae2fVK_AnnSlpGoalOff

#define __ae2fVK_AnnSlpGoalOff ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpDeltaSz(i_inp, i_out)
Definition Slp.core.h:171
#define __ae2fVK_AnnSlpDeltaOff(i_inp, i_out)
Definition Slp.core.h:178

Definition at line 179 of file Slp.core.h.

◆ __ae2fVK_AnnSlpGoalSz

#define __ae2fVK_AnnSlpGoalSz ( i_inp,
i_out )
Value:
(sizeof(ae2f_float_t) * (i_out))

Definition at line 172 of file Slp.core.h.

◆ __ae2fVK_AnnSlpInpOff

#define __ae2fVK_AnnSlpInpOff ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpBiasOff(i_inp, i_out)
Definition Slp.core.h:175
#define __ae2fVK_AnnSlpBiasSz(i_inp, i_out)
Definition Slp.core.h:168

Definition at line 176 of file Slp.core.h.

◆ __ae2fVK_AnnSlpInpSz

#define __ae2fVK_AnnSlpInpSz ( i_inp,
... )
Value:
(sizeof(ae2f_float_t) * (i_inp))

Definition at line 169 of file Slp.core.h.

◆ __ae2fVK_AnnSlpOutOff

#define __ae2fVK_AnnSlpOutOff ( i_inp,
i_out )
Value:
#define __ae2fVK_AnnSlpInpSz(i_inp,...)
Definition Slp.core.h:169
#define __ae2fVK_AnnSlpInpOff(i_inp, i_out)
Definition Slp.core.h:176

Definition at line 177 of file Slp.core.h.

◆ __ae2fVK_AnnSlpOutSz

#define __ae2fVK_AnnSlpOutSz ( i_inp,
i_out )
Value:
(sizeof(ae2f_float_t) * (i_out))

Definition at line 170 of file Slp.core.h.

◆ __ae2fVK_AnnSlpWeightOff

#define __ae2fVK_AnnSlpWeightOff ( i_inp,
i_out )
Value:
0

Definition at line 174 of file Slp.core.h.

◆ __ae2fVK_AnnSlpWeightSz

#define __ae2fVK_AnnSlpWeightSz ( i_inp,
i_out )
Value:
(sizeof(ae2f_float_t) * (i_inp) * (i_out))

Definition at line 167 of file Slp.core.h.

◆ clspv_restrict

#define clspv_restrict   restrict

Definition at line 13 of file Slp.core.h.

Typedef Documentation

◆ ae2fVK_AnnSlpMapRangedGeneric_t

typedef VkMappedMemoryRange ae2fVK_AnnSlpMapRangedGeneric_t

Definition at line 152 of file Slp.core.h.

◆ ae2fVK_AnnSlpUnMap_t

typedef VkMappedMemoryRange ae2fVK_AnnSlpUnMap_t

Definition at line 152 of file Slp.core.h.

◆ ae2fVK_eAnnSlpDescLayouts

◆ ae2fVK_eAnnSlpDescPools

◆ ae2fVK_eAnnSlpPipeLayouts

◆ ae2fVK_eAnnSlpPipes

Each of them matches for the pipeline

◆ STATIC_ASSERT_ae2fVK_AnnSlpMkU2_vkdescsetlayoutbind_sz

typedef char STATIC_ASSERT_ae2fVK_AnnSlpMkU2_vkdescsetlayoutbind_sz[sizeof(ae2fVK_AnnSlpMkU2S0_t)==sizeof(VkDescriptorSetLayoutBinding) *2 ? 1 :-1]

Definition at line 114 of file Slp.core.h.

Enumeration Type Documentation

◆ ae2fVK_eAnnSlpDescLayouts

Enumerator
ae2fVK_eAnnSlpDescLayouts_kPredict 
ae2fVK_eAnnSlpDescLayouts_kTrain 
ae2fVK_eAnnSlpDescLayouts_LEN 

Definition at line 47 of file Slp.core.h.

◆ ae2fVK_eAnnSlpDescPools

Enumerator
ae2fVK_eAnnSlpDescPools_kPredict 
ae2fVK_eAnnSlpDescPools_kTrain 
ae2fVK_eAnnSlpDescPools_LEN 

Definition at line 34 of file Slp.core.h.

◆ ae2fVK_eAnnSlpPipeLayouts

Enumerator
ae2fVK_eAnnSlpPipeLayouts_kPredict 
ae2fVK_eAnnSlpPipeLayouts_kTrain 
ae2fVK_eAnnSlpPipeLayouts_kFit 
ae2fVK_eAnnSlpPipeLayouts_LEN 

Definition at line 40 of file Slp.core.h.

◆ ae2fVK_eAnnSlpPipes

Each of them matches for the pipeline

Enumerator
ae2fVK_eAnnSlpPipes_kPredict 
ae2fVK_eAnnSlpPipes_kFollow 
ae2fVK_eAnnSlpPipes_kTrain 
ae2fVK_eAnnSlpPipes_kFit 
ae2fVK_eAnnSlpPipes_LEN 

This is the end of the value, which typically means the count of actual kernel used.

Definition at line 24 of file Slp.core.h.

Function Documentation

◆ ae2f_structdef() [1/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlp  )

Vulkan memory layout [WeightBuffer] [BiasBuffer] [DeltaCacheBuffer].

Definition at line 15 of file Slp.h.

◆ ae2f_structdef() [2/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpCreatDescPool_t  )

Definition at line 160 of file Slp.core.h.

◆ ae2f_structdef() [3/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpCreatDescPoolU0_t  )

Definition at line 154 of file Slp.core.h.

◆ ae2f_structdef() [4/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpDescPoolCmdMk_t  )

Temporary buffer 1

Definition at line 147 of file Slp.core.h.

◆ ae2f_structdef() [5/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpMk_t  )

error

Definition at line 124 of file Slp.core.h.

◆ ae2f_structdef() [6/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpMkAlter_t  )

Stack size and allocation count.

Pointer to the created SLP.

ENDOFDEFINITION

Definition at line 55 of file Slp.core.h.

◆ ae2f_structdef() [7/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpMkU2S0_t  )

Definition at line 94 of file Slp.core.h.

◆ ae2f_structdef() [8/13]

ae2f_structdef ( struct ,
ae2fVK_AnnSlpPredictUnion0WrDescInfo_t  )

Definition at line 135 of file Slp.core.h.

◆ ae2f_structdef() [9/13]

ae2f_structdef ( union ,
ae2fVK_AnnSlpMkU0_t  )

Definition at line 74 of file Slp.core.h.

◆ ae2f_structdef() [10/13]

ae2f_structdef ( union ,
ae2fVK_AnnSlpMkU1_t  )

Definition at line 82 of file Slp.core.h.

◆ ae2f_structdef() [11/13]

ae2f_structdef ( union ,
ae2fVK_AnnSlpMkU2_t  )

List dummy for ae2fVK_AnnSlpMkU2_t::m_S0.

Definition at line 98 of file Slp.core.h.

◆ ae2f_structdef() [12/13]

ae2f_structdef ( union ,
ae2fVK_AnnSlpMkU3_t  )

Definition at line 119 of file Slp.core.h.

◆ ae2f_structdef() [13/13]

ae2f_structdef ( union ,
ae2fVK_AnnSlpPredictUnion0_t  )

Definition at line 140 of file Slp.core.h.