MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / getInfoString

Method getInfoString

cpp/4_CUDA_Libraries/randomFog/rng.cpp:183–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void RNG::getInfoString(std::string &msg)
184{
185 using std::stringstream;
186
187 stringstream ss;
188
189 if (m_pCurrent == &m_prng) {
190 ss << "XORWOW (seed=" << m_prngSeed << ")";
191 }
192 else if (m_pCurrent == &m_qrng) {
193 ss << "Sobol (dimensions=" << m_qrngDimensions << ")";
194 }
195 else if (m_pCurrent == &m_sqrng) {
196 ss << "Scrambled Sobol (dimensions=" << m_qrngDimensions << ")";
197 }
198 else {
199 ss << "Invalid RNG";
200 }
201
202 msg.assign(ss.str());
203}
204
205void RNG::selectRng(RNG::RngType type)
206{

Callers 1

drawTextFunction · 0.80

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected