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

Function validate_gpuIsCuQuantumCompatible

quest/src/core/validation.cpp:1448–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446}
1447
1448void validate_gpuIsCuQuantumCompatible(const char* caller) {
1449
1450 int minCC = 70;
1451 int ourCC = gpu_getComputeCapability();
1452 tokenSubs vars = {
1453 {"${MIN_CC}", minCC},
1454 {"${OUR_CC}", ourCC}
1455 };
1456 assertAllNodesAgreeThat(ourCC >= minCC, report::CUQUANTUM_DEPLOYED_ON_BELOW_CC_GPU, vars, caller);
1457
1458 bool hasMemPools = gpu_doesGpuSupportMemPools();
1459 assertAllNodesAgreeThat(hasMemPools, report::CUQUANTUM_DEPLOYED_ON_GPU_WITHOUT_MEM_POOLS, caller);
1460}
1461
1462
1463

Callers 1

Calls 3

gpu_getComputeCapabilityFunction · 0.85
assertAllNodesAgreeThatFunction · 0.85

Tested by

no test coverage detected