MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / initialize_cpu_buffer

Method initialize_cpu_buffer

src/client/clfunc_xsyr.hpp:166–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165template <typename T>
166void xSyr<T>::initialize_cpu_buffer()
167{
168 srand(10);
169 for (size_t i = 0; i < buffer.N; ++i)
170 {
171 for (size_t j = 0; j < buffer.lda; ++j)
172 {
173 buffer.cpuA[i*buffer.lda+j] = random<T>(UPPER_BOUND<T>()) /
174 randomScale<T>();
175 }
176 }
177
178 for (size_t i = 0; i < buffer.N; ++i)
179 {
180 buffer.cpuX[i] = random<T>(UPPER_BOUND<T>()) /
181 randomScale<T>();
182 }
183}
184
185template <typename T>
186void xSyr<T>::initialize_gpu_buffer()

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected