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

Function demo_gpuAccelerated

examples/isolated/reporting_quregs.c:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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