MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / demo_gpuAccelerated

Function demo_gpuAccelerated

examples/isolated/reporting_quregs.cpp:63–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void demo_gpuAccelerated() {
64
65 reportStr("\n[GPU-accelerated]");
66
67 int numQubits = 10;
68 int isDensMatr = 0;
69
70 int useDistrib = 0;
71 int useGpuAccel = getQuESTEnv().isGpuAccelerated;
72 int useMultithread = 0;
73
74 Qureg qureg = createCustomQureg(
75 numQubits, isDensMatr,
76 useDistrib, useGpuAccel, useMultithread);
77
78 reportQuregParams(qureg);
79 reportQureg(qureg);
80 destroyQureg(qureg);
81}
82
83
84void demo_distributed() {

Callers 1

mainFunction · 0.70

Calls 6

reportStrFunction · 0.85
getQuESTEnvFunction · 0.85
createCustomQuregFunction · 0.85
reportQuregParamsFunction · 0.85
reportQuregFunction · 0.85
destroyQuregFunction · 0.85

Tested by

no test coverage detected