Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
knp::backends::cpu Namespace Reference

Namespace for CPU backends. More...

Detailed Description

Namespace for CPU backends.

Function Documentation

◆ calculate_blifat_population() [1/2]

template<class BlifatLikeNeuron >
std::optional< core::messaging::SpikeMessage > knp::backends::cpu::calculate_blifat_population ( knp::core::Population< BlifatLikeNeuron > & population,
knp::core::MessageEndpoint & endpoint,
size_t step_n )

Make one execution step for a population of BLIFAT neurons.

Template Parameters
BlifatLikeNeurontype of a neuron with BLIFAT-like parameters.
Parameters
populationpopulation to update.
endpointmessage endpoint used for message exchange.
step_nexecution step.
Returns
indexes of spiked neurons.

Definition at line 39 of file blifat_population.h.

◆ calculate_blifat_population() [2/2]

template<class BlifatLikeNeuron >
std::optional< knp::core::messaging::SpikeMessage > knp::backends::cpu::calculate_blifat_population ( knp::core::Population< BlifatLikeNeuron > & population,
knp::core::MessageEndpoint & endpoint,
size_t step_n,
std::mutex & mutex )

Make one execution step for a population of BLIFAT neurons.

Template Parameters
BlifatLikeNeurontype of a neuron with BLIFAT-like parameters.
Parameters
populationpopulation to update.
endpointmessage endpoint used for message exchange.
step_nexecution step.
mutexmutex.
Returns
indexes of spiked neurons.

Definition at line 81 of file blifat_population.h.

◆ calculate_delta_synapse_projection()

template<class DeltaLikeSynapseType >
void knp::backends::cpu::calculate_delta_synapse_projection ( knp::core::Projection< DeltaLikeSynapseType > & projection,
knp::core::MessageEndpoint & endpoint,
MessageQueue & future_messages,
size_t step_n )

Make one execution step for a projection of delta synapses.

Template Parameters
DeltaLikeSynapseTypetype of a synapse that requires synapse weight and delay as parameters.
Parameters
projectionprojection to update.
endpointmessage endpoint used for message exchange.
future_messagesmessage queue to process via endpoint.
step_nexecution step.

Definition at line 39 of file delta_synapse_projection.h.

◆ calculate_projection_part()

template<class DeltaLikeSynapse >
void knp::backends::cpu::calculate_projection_part ( knp::core::Projection< DeltaLikeSynapse > & projection,
const std::unordered_map< size_t, size_t > & message_in_data,
MessageQueue & future_messages,
uint64_t step_n,
size_t part_start,
size_t part_size,
std::mutex & mutex )

Process a part of projection synapses.

Template Parameters
DeltaLikeSynapsetype of a synapse that requires synapse weight and delay as parameters.
Parameters
projectionprojection to receive the message.
message_in_dataprocessed spike data for the projection.
future_messagesqueue of future messages.
step_ncurrent step.
part_startindex of the starting synapse.
part_sizenumber of synapses to process.
mutexmutex.

Definition at line 59 of file delta_synapse_projection.h.

◆ calculate_resource_stdp_population()

template<class BlifatLikeNeuron , class BaseSynapseType , class ProjectionContainer >
std::optional< core::messaging::SpikeMessage > knp::backends::cpu::calculate_resource_stdp_population ( knp::core::Population< neuron_traits::SynapticResourceSTDPNeuron< BlifatLikeNeuron > > & population,
ProjectionContainer & container,
knp::core::MessageEndpoint & endpoint,
size_t step_n )

Make one execution step for a population of SynapticResourceSTDPNeuron neurons.

Template Parameters
BlifatLikeNeurontype of a neuron with BLIFAT-like parameters.
BaseSynapseTypebase synapse type.
ProjectionContainertype of a projection container.
Parameters
populationpopulation to update.
containerprojection container from backend.
endpointmessage endpoint used for message exchange.
step_nexecution step.
Returns
message containing indexes of spiked neurons.

Definition at line 58 of file blifat_population.h.

◆ init()

template<typename ProjectionContainer >
void knp::backends::cpu::init ( const ProjectionContainer & projections,
knp::core::MessageEndpoint & message_endpoint )

Initialize backend.

Parameters
projectionscontainer backend projections.
message_endpointmessage endpoint.
Template Parameters
ProjectionContainertype of projection container.

Definition at line 89 of file init.h.

+ Here is the call graph for this function: