MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / krnl_vadd

Function krnl_vadd

hls_smartInfinity/src/kernel_cpp/sgd.cpp:115–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114extern "C"{
115 void krnl_vadd(
116 dhvec* grad16,
117 dhvec* param16,
118 vec* param,
119 vec* exp_avg,
120 uint n_elements,
121 float betta,
122 float w_decay,
123 float step_size,
124 float combined_unscale
125 )
126 {
127 #pragma HLS interface m_axi port=grad16 offset=slave bundle=half max_read_burst_length=256 max_write_burst_length=256
128 #pragma HLS interface m_axi port=param16 offset=slave bundle=half max_write_burst_length=256
129
130 #pragma HLS interface m_axi port=param offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
131 #pragma HLS interface m_axi port=exp_avg offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
132
133 sgd ( grad16, param16, param, exp_avg, n_elements,
134 betta, w_decay, step_size, combined_unscale );
135 }
136}

Callers

nothing calls this directly

Calls 1

sgdFunction · 0.70

Tested by

no test coverage detected